25.02.2010, 18:17
pawn Код:
if(buyfood[playerid] == 1)
{
if (strcmp(text,"1",true) == 0)
{
new Playermoney = GetPlayerMoney(playerid);
if (Playermoney >= 1)
{
SetPlayerHealth(playerid, eHealth+5);
buyfood[playerid] = 1;
return 0;
}
SendClientMessage(playerid,RED,"You don't have enough money to buy this!");
return 1;
}