Hallo
Ich habe ein Kleines Problem mit meinem /level
Befehl er ist dazu da wen man eine bestimme anzahl von kills hat kann man /level
machen und man bekommt ein level und score aber irgendwie sagt er ingame Unknow command
ich kann leider nicht pawno einfügen
if(strcmp(cmdtext,"/level",true)==0)
{
if(GetPVarInt(playerid,"kills")==25)
if(GetPVarInt(playerid,"Kills")==50)
if(GetPVarInt(playerid,"Kills")==75)
if(GetPVarInt(playerid,"Kills")==100)
if(GetPVarInt(playerid,"Kills")==125)
if(GetPVarInt(playerid,"Kills")==150)
if(GetPVarInt(playerid,"Kills")==175)
if(GetPVarInt(playerid,"Kills")==200)
if(GetPVarInt(playerid,"Kills")==225)
if(GetPVarInt(playerid,"Kills")==250)
if(GetPVarInt(playerid,"Kills")==275)
if(GetPVarInt(playerid,"Kills")==300)
if(GetPVarInt(playerid,"Kills")==325)
if(GetPVarInt(playerid,"Kills")==350)
if(GetPVarInt(playerid,"Kills")==375)
if(GetPVarInt(playerid,"Kills")==400)
if(GetPVarInt(playerid,"Kills")==425)
if(GetPVarInt(playerid,"Kills")==450)
if(GetPVarInt(playerid,"Kills")==475)
if(GetPVarInt(playerid,"Kills")==500)
if(GetPVarInt(playerid,"Kills")==525)
if(GetPVarInt(playerid,"Kills")==550)
if(GetPVarInt(playerid,"Kills")==575)
if(GetPVarInt(playerid,"Kills")==600)
if(GetPVarInt(playerid,"Kills")==625)
if(GetPVarInt(playerid,"Kills")==650)
if(GetPVarInt(playerid,"Kills")==675)
if(GetPVarInt(playerid,"Kills")==700)
if(GetPVarInt(playerid,"Kills")==725)
if(GetPVarInt(playerid,"Kills")==750)
if(GetPVarInt(playerid,"Kills")==775)
if(GetPVarInt(playerid,"Kills")==800)
if(GetPVarInt(playerid,"Kills")==825)
if(GetPVarInt(playerid,"Kills")==850)
if(GetPVarInt(playerid,"Kills")==875)
if(GetPVarInt(playerid,"Kills")==900)
if(GetPVarInt(playerid,"Kills")==925)
if(GetPVarInt(playerid,"Kills")==950)
if(GetPVarInt(playerid,"Kills")==975)
if(GetPVarInt(playerid,"Kills")==1000)
{
SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
SetPVarInt(playerid, "Kills", GetPVarInt(playerid, "Kills")+1);
GivePlayerMoney(playerid,10000);
SendClientMessage(playerid,0x5CCF16FF, "Du hast dir ein Level up geholt $10,000 geschenk");
SpielerSpeichern(playerid);
return 1;
}
else
{
SendClientMessage(playerid, BLAU, "Du hast zuwenig Kills");
return 1;
}
}