23.06.2010, 10:59
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1296.9116,-979.6759,32.6953)
{
TogglePlayerControllable(playerid, false);
SetTimerEx("GiveDrugs", 10000, 0, "i", playerid);
return 1;
}
return 1;
pawn Код:
public GiveDrugs(playerid)
{
TogglePlayerControllable(playerid, true);
//I do not know your drug array, so I will just use an example.
pData[playerid][Drugs] += 1;
return 1;
}
This uses a timer
lol.Place the top code in your command, and the bottom code outside any callbacks.

