Hunger
#3

To use: Player[playerid][Hunger];
I have this code:
Код:
if(listitem == 0)
{
	if(GetPlayerMoney(playerid) >= 5)
	{
		GivePlayerMoney(playerid, -5);
		Player[playerid][Hunger] = Player[playerid][Hunger] + 10;
	}
	else
	{
		return SendClientMessage(playerid, -1, "You can not afford this dish!");
	}
}
Reply


Messages In This Thread
Hunger - by KamilPolska - 28.05.2018, 20:33
Re: Hunger - by aristoffky - 28.05.2018, 20:43
Re: Hunger - by KamilPolska - 28.05.2018, 20:52
Re: Hunger - by KamilPolska - 29.05.2018, 18:29

Forum Jump:


Users browsing this thread: 1 Guest(s)