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