04.06.2010, 02:16
pawn Код:
if(listitem == 3)
{
if(PlayerInfo[playerid][pCash] < 251) return SendClientMessage(playerid,COLOR_GREY, "Not Enough Cash!");
new Float:Health;
GetPlayerHealth(playerid, Health);
floatround(Health);
if(Health > 81) return SendClientMessage(playerid, COLOR_GREY, " You can't buy anymore You'll get fat!!");
SetPlayerHealth(playerid, Health+20);
PlayerInfo[playerid][pCash] -= 250;
GivePlayerCash(playerid, -250);
}