Small quiestion - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Small quiestion (
/showthread.php?tid=125234)
Small quiestion -
Dj_maryo1993 - 02.02.2010
I'm noob and i forgot the function
What is the function to set an timer to an player(only a player)
This is what i need it for
Код:
public LoadMapToPlayer(playerid)
{
TogglePlayerControllable(playerid, 0);
SetTimer("LoadMapp", 3000, 0);
GameTextForPlayer(playerid, "~g~Loading Map~n~~r~Please Wait", 3000, 1);
return 1;
}
public LoadMapp(playerid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}
Of course , if it isn't id 0 , the player remain frozen
![Sad](images/smilies/sad.gif)
.
Doing an loop trough all the players isn't the best way ..
LE : Found it , is SetTimerEx , but how to use it ?
LLE : Solved