Quote:
Originally Posted by Jack86
Try this
PHP Code:
public plugin_cfg() { new mapname[32] get_mapname(mapname,charsmax(mapname)) if(equali(mapname,"de_dust2") != -1) set_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" ) == 1 )
{
// set_task( 1.0 , "z" )
}
else if ( get_cvar_num( "amx_notice" ) == 0 )
{
// remove_task( )
}
}
public plugin_cfg( )
{
new mapname[ 32 ]
get_mapname( mapname, charsmax( mapname ) )
if ( equali( mapname, "de_dust2" ) != -1 )
{
set_cvar_num( "amx_notice", 1 )
}
else
{
set_cvar_num( "amx_notice", 0 )
}
}