Raised This Month: $ Target: $400
 0% 

Maps


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zombieplague
Veteran Member
Join Date: Apr 2009
Old 02-10-2010 , 06:12   Re: Maps
Reply With Quote #8

Quote:
Originally Posted by Jack86 View Post
Try this
PHP Code:
public plugin_cfg()
{
    new 
mapname[32]
    
get_mapname(mapname,charsmax(mapname))
    if(
equali(mapname,"de_dust2") != -1set_cvar_num("amx_nono",1)
    else 
set_cvar_num("amx_nono",0)
 

Didn't work

PHP Code:
public plugin_init( )
{
    
register_logevent"logevent_round_start"2"1=Round_Start" )

    
register_cvar"amx_notice""1" )
}

public 
logevent_round_start( )

    if ( 
get_cvar_num"amx_notice" ) == )
    {  
        
// set_task( 1.0 , "z" )
    
}
 
    else if ( 
get_cvar_num"amx_notice" ) == )
    {  
        
// remove_task( )
    
}
}  

public 
plugin_cfg( )
{
    new 
mapname32 ]
    
get_mapnamemapnamecharsmaxmapname ) )
    if ( 
equalimapname"de_dust2" ) != -
    {
        
set_cvar_num"amx_notice")
    }
    else
    {
        
set_cvar_num"amx_notice")
    }

zombieplague 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 07:22.


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