Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Timer advice

$
0
0
Hey there

Question one:
How should i handle the player timers? Now i have one main Sec-timer, and i use foreach to loop through connected players and call the 'PlayerTimer' function. Should i use per player timers instead?

Question two:
I'm trying to implement some of the main singleplayer features.
The first example is the clothing store. Example video
You can see the animation and the menu showing timing in accordance with the moving door object so i think i need a really fast repeating timer.
How should i create that? Should i create one main timer and use that for move the door object and handle the animation or should i create per player timers?

Thanks for your advice

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>