Raised This Month: $ Target: $400
 0% 

Chnanging map when players not enough


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Caldeum
Senior Member
Join Date: Jul 2010
Location: United Kingdom
Old 08-26-2012 , 05:51   Chnanging map when players not enough
Reply With Quote #1

Last topic locked. I create new one. Doesn't work for me. Does anyone know why?

PHP Code:
#pragma semicolon 1
#include < amxmodx >
#include < amxmisc >
#include < color >

public plugin_init( )
{
register_plugin"Changing map""0.1""alliedmodd" );

register_logevent"endround_event"2"0=World triggered""1=Round_End" );
}

public 
endround_eventid )
{
new 
players;
players get_playersnum( );

new 
Name32 ];
get_mapnameName31 );

if ( 
equaliName"de_" ) || equaliName"cs_office" ) || equaliName"cs_italy" ) )
{
if ( 
equaliName"de_dust2_2x2" ) )
return;

if ( 
players )
{
print_colorid"[AMXX] players are less than 8. Next map will be de_dust2_2x2." );
set_task0.15"changesmallmap" );
}
}

if ( 
equaliName"fy_" ) || equaliName"awp_" ) || equaliName"cs_deagle5" ) || 
equaliName"cs_max" ) || equaliName"aim_" ) || equaliName"35hp_" ) || equaliName"de_dust2_2x2" ) )
{
if ( 
players 10 )
{
print_colorid"[AMXX] players are more than 10. Next map will be de_dust2." );
set_task0.15"changebigmap" );
}
}
}

public 
changesmallmap( )
{
server_cmd"exec mapcycle_small.txt" );
server_cmd"changelevel de_dust2_2x2" );
}

public 
changebigmap( )
{
server_cmd"exec mapcycle_big.txt" );
server_cmd"changelevel de_dust2" );

or better use ? +mapcycle...
PHP Code:
server_cmd"mapcycle mapcycle_big.txt" ); 
__________________
Of all the things I lost, I miss my brain the most.
Caldeum is offline
 


Thread Tools
Display Modes

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 05:48.


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