SA-MP Forums Archive
Offline Player Timer (+rep) - 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)
+--- Thread: Offline Player Timer (+rep) (/showthread.php?tid=497991)



Offline Player Timer (+rep) - ScripteRMKD - 01.03.2014

Hi All.I maked timer for passport and etc.. I put it to ongamemodeinit

SetTimer("PassportCheck",1000,1);

and now if player not connected t.e not online or disconnected from server and its that timer working for disconnected player ?


Re: Offline Player Timer (+rep) - YesYesYes - 01.03.2014

If you're asking whether the timer works for offline player or not, the answer is no.
Although, you can use SetTimerEx to set a timer which carry the name of the player, so if the player disconnects, it opens the file of the player to execute the function.

EDIT: Also, timer is never used for a particular player. If you want to use a timer for a player, you should use SetTimerEx so that it carries the id of the player or name with it.


Re: Offline Player Timer (+rep) - ScripteRMKD - 01.03.2014

Solved alkone ) but repped for you