23.06.2010, 10:08
how can i make so that if player types a command in certain place, he will be freezed 10second, and he will get etc 10 drugs
Still Larp script
Still Larp script
Originally Posted by Joe_
IsPlayerInRangeOfPoint
GetTickCount |
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1296.9116,-979.6759,32.6953)
{
TogglePlayerControllable(playerid, false);
SetTimerEx("GiveDrugs", 10000, 0, "i", playerid);
return 1;
}
return 1;
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;
}