Re: Lua sleep() [message #450339 is a reply to message #450306] |
Sat, 30 July 2011 11:10 |
iRANian
Messages: 4308 Registered: April 2011
Karma:
|
General (4 Stars) |
|
|
:Destroyed() gets triggered when the the script is destroyed, you need to use :Timer_Expired(). In the chat hook you need to attach and destroy the script when a player types "!music on" and "!music off" respectively. You should add some debug messages in all the major hotspots in your code so you can see what gets triggered and what does not.
Long time and well respected Renegade community member, programmer, modder and tester.
Scripts 4.0 private beta tester since May 2011.
My Renegade server plugins releases
|
|
|