Funktion only for 1 player? - 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: Funktion only for 1 player? (
/showthread.php?tid=116976)
Funktion only for 1 player? -
nesty - 30.12.2009
hi there!
I've created just a simple funktion but why this only run for one player? here the (example script)
pawn Код:
SetTimer("TEST", 1000, true);// its in OnGameModeInit()
pawn Код:
public TEST(playerid)
{
SendClientMessage(playerid, COLOR_LILA, "xxx");
return 1;
}
Re: Funktion only for 1 player? -
Correlli - 30.12.2009
Use
SetTimerEx-function, you can pass parameters to the function.
Re: Funktion only for 1 player? -
nesty - 30.12.2009
thanks for the answer

its a good idea but i've just took a loop for it lol