SA-MP Forums Archive
timer for 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: timer for player (/showthread.php?tid=123734)



timer for player - aNdReSkKkK - 27.01.2010

Hello there, noob question

Is it possible to create a timer for playerid?

I have my drug effects always working, and they show on player if he on‌drugs=true but it's not perfect, I'm using the MAX_PLAYERS thing to check each online player..

So, i was wondering if when the player uses a drug, can it activate a player for him only.

thanks


Re: timer for player - [DM]Kane - 27.01.2010

do that if players types a specific command.. it sets a variable's value to 1.. and create a timer at top., which checks if any player has that variable's value as 1 or not.. if value is 1, then only proceed, else it does nothing..
I hope you can do it, if have know the basics.


Re: timer for player - aNdReSkKkK - 27.01.2010

yeah thats what it-s currently doing... and i dont like it that much
no other way?


Re: timer for player - Correlli - 27.01.2010

https://sampwiki.blast.hk/wiki/SetTimerEx


Re: timer for player - mansonh - 27.01.2010

Quote:
Originally Posted by [DM
Kane ]
do that if players types a specific command.. it sets a variable's value to 1.. and create a timer at top., which checks if any player has that variable's value as 1 or not.. if value is 1, then only proceed, else it does nothing..
I hope you can do it, if have know the basics.
Thats absolutely terrible advice.

This is a lot better, both of you should read this.
Quote:
Originally Posted by Don Correlli
Basically you say SetTimerEx("Function", time, true/false, "d...", playerid, ...);


Re: timer for player - aNdReSkKkK - 27.01.2010

nice :P