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-28-2009 , 05:30   Re: Darkness.
Reply With Quote #1

Quote:
Originally Posted by xPaw View Post
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_task30.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" );
        }
 
        
set_taskTIME_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.
Mr.Noobie is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-28-2009 , 07:25   Re: Darkness.
Reply With Quote #2

I dont know how you tested... but for me it worked.
__________________
xPaw is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-28-2009 , 07:55   Re: Darkness.
Reply With Quote #3

Quote:
Originally Posted by xPaw View Post
I dont know how you tested... but for me it worked.
I think my zombie plague is affecting. I will test it later with my zombie plague off.

EDIT: it work for non - zombie plague. But i want it for zombie how ?

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

new Count
new const g_szLightSettings[ ][ ] = { "e""d""b""a" }

#define TIME_DELAY 3.0

public plugin_init( ) 

        
register_plugin"Darkness""1.0""Mr.Noobie" )
        
set_task30.0"Darkness" 
}

public 
Darkness( )
{
        
zp_lightingg_szLightSettingsCount ] )
        if ( ++
Count sizeofg_szLightSettings ) )
        {
               
set_taskTIME_DELAY"Darkness" )
        }

Error compile underfined symbol zp_lighting. I know cos zombieplague doesn't have this format so how ?

Last edited by Mr.Noobie; 08-28-2009 at 09:02.
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