Raised This Month: $ Target: $400
 0% 

Darkness.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-26-2009 , 10:21   Re: Darkness.
Reply With Quote #1

Quote:
Originally Posted by xPaw View Post
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_task60.0"Darkness" );
}
 
public 
Darkness( ) {
    if ( 
g_iCount ) {
        switch( 
g_iCount ) {
            case 
0set_lights"e" );
            case 
1set_lights"d" );
            case 
2set_lights"b" );
            case 
3set_lights"a" );
        }
 
        
g_iCount++;
        
set_taskTIME_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.
Mr.Noobie is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode