Quote:
Originally Posted by xPaw
Tested and works fine.
PHP Code:
#include <amxmodx> #include <engine> new g_iCount; #define TIME_DELAY 3.0 public plugin_init( ) { register_plugin( "Darkness", "1.0", "Mr.Noobie" ); set_task( 30.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" ); } set_task( TIME_DELAY, "Darkness" ); } }
|
I know it working fine.
The problem is after e - d - b - a still continue.
I want after e - d - b - a to stop functioning.