Raised This Month: $ Target: $400
 0% 

Darkness.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-26-2009 , 18:42   Re: Darkness.
Reply With Quote #1

PHP Code:
#include <amxmodx>  
#include <engine> 

new g_iCount
  
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" ); 
        } 
        
remove_task);
    } 

Rly i am not sure if my code is correctly so you have to try...

P.S: Obviusly set a short time to the task, so you can do a fast test, i dont think you want to wait 60 seconds ><
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...

Last edited by Alucard^; 08-26-2009 at 18:45.
Alucard^ is offline
Send a message via Skype™ to Alucard^
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-26-2009 , 22:25   Re: Darkness.
Reply With Quote #2

PHP Code:
    if ( ++g_iCount ) { 
        switch( 
g_iCount ) { 

PHP Code:
    if ( g_iCount ) { 
        switch( 
g_iCount++ ) { 
That way, 0 will be used.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-27-2009 , 11:39   Re: Darkness.
Reply With Quote #3

Quote:
Originally Posted by Alucard^ View Post
PHP Code:
#include <amxmodx>  
#include <engine> 
 
new g_iCount
 
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" ); 
        } 
        
remove_task);
    } 

Rly i am not sure if my code is correctly so you have to try...

P.S: Obviusly set a short time to the task, so you can do a fast test, i dont think you want to wait 60 seconds ><
I try your codes. didn't work correctly meaning that when the light change to "e" it's stop doesn't e - d - b - a.

Quote:
Originally Posted by Exolent[jNr] View Post
PHP Code:
    if ( ++g_iCount ) { 
        switch( 
g_iCount ) { 

PHP Code:
    if ( g_iCount ) { 
        switch( 
g_iCount++ ) { 
That way, 0 will be used.
I also try to change but no use.

I trying this it works but the same problem.

PHP Code:
#include <amxmodx> 
#include <engine>
new Count
#define TIME_DELAY 3.0
public plugin_init( ) 

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

But after "a" can't remove_task the task keep like repeat.

I don'
t know how to sayCan someone try that code then you see what i meanLike suddenly flash
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