23.03.2010, 15:28
If it would be:
It would kill the player only if he/she would have exactly 10000..
But if you make it
it kills the player if he got more than 10000. Like 15000, 16000, or 10001...
EDIT: Fixed the fail in the pawn scripts..
pawn Код:
if(GetPlayerMoney(playerid) == 10000)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, 0xFFADSADS, "You can't have more than $10000, but since you had, you died !");
SendClientMessage(playerid, 0xFFADSADS, "Your money was set to '10000' !");
SetPlayerMoney(playerid, 10000); //Dunno if you got a function like this..
return 1;
}
But if you make it
pawn Код:
if(GetPlayerMoney(playerid) > 10000)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, 0xFFADSADS, "You can't have more than $10000, but since you had, you died !");
SendClientMessage(playerid, 0xFFADSADS, "Your money was set to '10000' !");
SetPlayerMoney(playerid, 10000); //Dunno if you got a function like this..
return 1;
}
EDIT: Fixed the fail in the pawn scripts..

