21.12.2012, 01:13
Hey! Sorry if this is a dumb question, but I have been struggling to add more than one location (coordinates) to one command.
Heres my command:
Heres my command:
Код:
CMD:eat(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 10, 376.4745,-67.4357,1001.5078)) return SendClientMessage(playerid, COLOR_RED, "You're not at a restaurant!");
{
KillTimer(HungerTimer);
SendClientMessage(playerid, COLOR_RED, "Thanks for visiting! Enjoy!");
GivePlayerMoney(playerid, -10);
HungerTimer = SetTimerEx("NeedToEat",N2E_TIME,1,"i",playerid);
SetPlayerHealth(playerid, 100);
}
return 1;
}

