PlayerText Commands
#4

Try this:

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


Messages In This Thread
PlayerText Commands - by Fugative. - 25.02.2010, 18:17
Re: PlayerText Commands - by wafffllesss - 25.02.2010, 18:27
Re: PlayerText Commands - by Fugative. - 25.02.2010, 18:46
Re: PlayerText Commands - by VonLeeuwen - 25.02.2010, 19:01
Re: PlayerText Commands - by Torran - 25.02.2010, 19:06
Re: PlayerText Commands - by VonLeeuwen - 25.02.2010, 19:09
Re: PlayerText Commands - by Torran - 25.02.2010, 19:15
Re: PlayerText Commands - by VonLeeuwen - 26.02.2010, 07:24

Forum Jump:


Users browsing this thread: 1 Guest(s)