timer for player
#1

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
Reply
#2

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.
Reply
#3

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

https://sampwiki.blast.hk/wiki/SetTimerEx
Reply
#5

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, ...);
Reply
#6

nice :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)