SA-MP Forums Archive
Settimer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Settimer (/showthread.php?tid=181157)



Settimer - FrankC - 04.10.2010

I use this

Код:
TogglePlayerControllable(playerid, 0);
but i wanna set a timer so only after 5 seconds it takes the PlayerControl
can anybody help me?


Re: Settimer - Retardedwolf - 04.10.2010

SetTimerEx.


Re: Settimer - FrankC - 04.10.2010

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
SetTimerEx.
ive tryed

Код:
TogglePlayerControllable(playerid, 0);
SetTimerEx("TogglePlayerControllable", 50000, playerid);
but didnt work..


Re: Settimer - willsuckformoney - 04.10.2010

pawn Код:
SetTimerEx("Control", 50000, true, "i", playerid);

forward Control(playerid);
public Control(playerid)
{
        TogglePlayerControllable(playerid, 0);
        return 1;
}



Re: Settimer - Voldemort - 04.10.2010

pawn Код:
forward CanMove(playerid); //Top

TogglePlayerControllable(playerid, 0);  //Where need
SetTimerEx("CanMove", 50000,0,"i",playerid);

public CanMove(playerid)
{
TogglePlayerControllable(playerid,1);
}



Re: Settimer - FrankC - 04.10.2010

It works now thanks.