05.08.2010, 17:37
Why do you even need to store the timers ID, it's not repeating so you won't be needing to kill it.
Can we see public FreezeTimer function please? Also shouldn't that teleport be more like
Since I assume you're trying to freeze them for 3 seconds then unfreeze them with FreezeTimer...?
There's no need for stunt2timer variable for this timer.
Can we see public FreezeTimer function please? Also shouldn't that teleport be more like
pawn Код:
if(strcmp("/stunt2", cmdtext, true, 10) == 0)
{
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid, "Objects Loading..", 1000, 1);
TogglePlayerControllable(playerid,false);
SetTimerEx("FreezeTimer",3000,0,"d",playerid);
SetPlayerPos(playerid, 465.7092,-2250.7974,24.2511);
SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported!");
return 1;
}
There's no need for stunt2timer variable for this timer.