14.06.2014, 21:17
You need to move the if statment inside
pawn Код:
//level system
CMD:buylevel(playerid, params[])
{
if(GetPlayerMoney(playerid) >= 1000)
{
GivePlayerMoney(playerid, -1000);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
}
return true;
}
CMD:godon(playerid, params[])
{
if(GetPlayerScore(playerid) > 50)
{
SetPlayerHealth(playerid, 99999.9);
}
return true;
}