Log in

View Full Version : Timers



Lorenc
08-31-2011, 11:36 AM
Hey, I haven't checked recently on the revisions though is there timers included in the VaultMP scripting package? Thanks :)

foxtacles
08-31-2011, 10:10 PM
Not yet, but they will definitely be implemented very soon ;)

Aeronix
08-31-2011, 11:18 PM
When we have a plugin system, some good C++ developer will hopefully be able to make them :P

foxtacles
09-04-2011, 05:36 PM
https://www.vaultmp.com/index.php?topic=261.0

https://svn.brickster.net/vaultmp/trunk/vaultscript/pawnc/standard.pwn
https://svn.brickster.net/vaultmp/trunk/vaultscript/vaultscript.cpp

Note that in C++ using vaultmp's timers should be generally preferred over running your own threads. Although all scripting functions are thread-safe, doing too much vaultmp stuff in your own thread may get you state inconsistency (imagine a procedure which operates on player X, in the middle of that procedure OnPlayerDisconnect with player X gets called and the rest of your procedure will fail). This won't happen with vaultmp timers.