Raised This Month: $ Target: $400
 0% 

Darkness.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-26-2009 , 03:37   Darkness.
Reply With Quote #1

Does anyone know what wrong with this plugin ?

It works. But didn't work correctly.

I want to make it like after the 60 second the sky change to darkness like e - d - b - a then stop functioning.

My problem is the after the "a" the function repeat itself. I know there is a set_task( TIME_DELAY, "Darkness", Count ), But i try to remove_task( 0 ) Still it didn't remove task.

PHP Code:
#include <amxmodx> 
#include <engine>
 
#define TIME_DELAY 5.0
 
public plugin_init( ) 

        
register_plugin"Darkness""1.0""Mr.Noobie" )
        
set_task60.0"Darkness"0__"b" 
}
 
public 
DarknessCount )
{
    if ( 
Count<)
    {
        switch( 
Count )
        {
            case 
0set_lights"e" )
            case 
1set_lights"d" )
            case 
2set_lights"b" )
            case 
3set_lights"a" )
        }
        
Count++
        
set_taskTIME_DELAY"Darkness"Count )
        
remove_task
    }

Mr.Noobie is offline
 



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