Quote:
Originally Posted by xPaw
PHP Code:
#include <amxmodx> #include <engine> new g_iCount; #define TIME_DELAY 5.0 public plugin_init( ) { register_plugin( "Darkness", "1.0", "Mr.Noobie" ); set_task( 60.0, "Darkness" ); } public Darkness( ) { if ( g_iCount < 4 ) { switch( g_iCount ) { case 0: set_lights( "e" ); case 1: set_lights( "d" ); case 2: set_lights( "b" ); case 3: set_lights( "a" ); } g_iCount++; set_task( TIME_DELAY, "Darkness" ); } }
|
Still it like when the light is "a" it will suddenly change to "e" then become "a" again. 1 second.
I want it like after e - d - b - a then the set task will stop functioning.