Hallo Ich Möchte Gerne Ein script haben Wo Mann Unter Waffnschein flügschein u.s.w auch SF-pass Findet Und Lv-pasp?? Geht das weil wir haben ein zoll und noch was wenn man beim fahrschulerher ist und der dir preis liste zeigt soll das da auch stehen
Die preise sind
SF-Pass 50000§
Un
LV-Pass 25000&
also Wenn man /showlicenses Das die dabei stehen ?? Ich bedanke mich wenn das jemmand machen Könnte
So in der art Wenns geht
if(strcmp(cmd,"/licenses",true)==0)
{
if(IsPlayerConnected(playerid))
{
new text1[20];
new text2[20];
new text3[20];
new text4[20];
new text5[20];
if(PlayerInfo[playerid][pCarLic]) { text1 = "Bestanden"; } else { text1 = "Nicht Bestanden"; }
if(PlayerInfo[playerid][pFlyLic]) { text4 = "Bestanden"; } else { text4 = "Nicht Bestanden"; }
if(PlayerInfo[playerid][pBoatLic]) { text2 = "Bestanden"; } else { text2 = "Nicht Bestanden"; }
if(PlayerInfo[playerid][pFishLic]) { text3 = "Bestanden"; } else { text3 = "Nicht Bestanden"; }
if(PlayerInfo[playerid][pGunLic]) { text5 = "Bestanden"; } else { text5 = "Nicht Bestanden"; }
if(PlayerInfo[playerid][pSfLic]) { text6 = "Vorhanden"; } else { text6 = "Nicht Vorhanden"; }
if(PlayerInfo[playerid][pLvlic]) { text7 = "Vorhanden"; } else { text7 = "Nicht Vorhanden"; }
SendClientMessage(playerid, COLOR_WHITE, "|__________________ Scheine __________________|");
format(string, sizeof(string), "** Führerschein: %s.", text1);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "** Flugschein: %s.", text4);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "** Bootschein: %s.", text2);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "** Angelschein: %s.", text3);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "** Waffenschein: %s.", text5);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "** SF-Pass: %s.", text6);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "** LV-Pass: %s.", text7);
SendClientMessage(playerid, COLOR_GREY, string);
SendClientMessage(playerid, COLOR_WHITE, "|______________________________________________|");
}
return 1;
}
if(strcmp(cmd,"/showlicenses",true)==0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /showlicenses [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Du kannst dir nicht selber die Scheine zeigen!"); return 1; }
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new text1[20];
new text2[20];
new text3[20];
new text4[20];
new text5[20];
new text6[20];
new text7[20];
if(PlayerInfo[playerid][pCarLic]) { text1 = "Bestanden"; } else { text1 = "Nicht Bestanden"; }
if(PlayerInfo[playerid][pFlyLic]) { text4 = "Bestanden"; } else { text4 = "Nicht Bestanden"; }
if(PlayerInfo[playerid][pBoatLic]) { text2 = "Bestanden"; } else { text2 = "Nicht Bestanden"; }
if(PlayerInfo[playerid][pFishLic]) { text3 = "Bestanden"; } else { text3 = "Nicht Bestanden"; }
if(PlayerInfo[playerid][pGunLic]) { text5 = "Bestanden"; } else { text5 = "Nicht Bestanden"; }
if(PlayerInfo[playerid][pSfLic]) { text6 = "Vorhanden"; } else { text6 = "Nicht Vorhanden"; }
if(PlayerInfo[playerid][pLvlic]) { text7 = "Vorhanden"; } else { text7 = "Nicht Vorhanden"; }
format(string, sizeof(string), "|__________ Papiere von %s __________|", sendername);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "** Führerschein: %s.", text1);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "** Flugschein: %s.", text4);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "** Bootschein: %s.", text2);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "** Angelschein: %s.", text3);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "** Waffenschein: %s.", text5);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "** SF-Pass: %s.", text6);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "** LV-Pass: %s.", text7);
SendClientMessage(giveplayerid, COLOR_GREY, string);
format(string, sizeof(string), "* %s hat dir die Papiere gezeigt.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Du zeigst %s deine Papiere.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Spieler ist nicht bei dir !");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Spieler ist offlinee !");
return 1;
}
}
return 1;
}