Raised This Month: $ Target: $400
 0% 

if players < 8 exec small_maps


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Caldeum
Senior Member
Join Date: Jul 2010
Location: United Kingdom
Old 08-25-2012 , 15:32   Re: if players < 8 exec small_maps
#4

Can anyone help? doesn't work for me. Can anyone tell me better way to get de_ maps if de_dust2_2x2 is small map and de_dust2 is big one?

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] Server detect that 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] Server detect that 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" );

__________________
Of all the things I lost, I miss my brain the most.

Last edited by Exolent[jNr]; 08-25-2012 at 21:37.
Caldeum 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 05:43.


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