forward AdminRank(playerid)
SetTimer("AdminRank",1000,1);
public AdminRank(playerid)
{
if(Admin(playerid,1))
{
SetPVarInt(playerid,"Kills",1000);
SetPVarInt(playerid,"Deaths",0);
SetPlayerScore(playerid,1000);
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,99999999);
return 1;
}
if(Admin(playerid,2))
{
SetPVarInt(playerid,"Kills",1100);
SetPVarInt(playerid,"Deaths",0);
SetPlayerScore(playerid,1100);
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,99999999);
return 1;
}
if(Admin(playerid,3))
{
SetPVarInt(playerid,"Kills",1200);
SetPVarInt(playerid,"Deaths",0);
SetPlayerScore(playerid,1200);
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,99999999);
return 1;
}
if(Admin(playerid,4))
{
SetPVarInt(playerid,"Kills",1337);
SetPVarInt(playerid,"Deaths",0);
SetPlayerScore(playerid,1337);
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,99999999);
return 1;
}
if(Admin(playerid,5))
{
SetPVarInt(playerid,"Kills",1338);
SetPVarInt(playerid,"Deaths",0);
SetPlayerScore(playerid,1338);
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,99999999);
return 1;
}
return 1;
}
Das funktioniert nur wenn man ID 0 ist wieso?