pawn Код:
public Gift(playerid)
{
GiftPlayer(playerid, 1);
gifttimer[playerid] = 0;
gettinggift[playerid] = 0;
giftsenabled = 1;//try this
return 1;
}
and here
...
if(IsPlayerInRangeOfPoint(playerid, 3.0, x, y, z))
{
gettinggift[playerid] = 1;
giftsenabled = 0;/////////////////////
format(string, sizeof(string), "* %s reaches inside the box with their eyes closed and grabs something.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, PURPLE, PURPLE, PURPLE, PURPLE, PURPLE);
SetTimerEx("Gift", 1000, false, "i", playerid);
return 1;
}
...