See
PHP Code:
#include < amxmodx >
#include < amxmisc >
#include < cstrike >
public plugin_init( ) {
register_event( "HLTV", "EventNewRound", "a", "1=0", "2=0" );
}
public EventNewRound( ) {
new iPlayers[ 32 ], iNum;
get_players( iPlayers, iNum );
new iRandomIndex = random( iNum );
for( new i = 0; i < iNum; i++ ) {
cs_set_user_team( iPlayers[ i ], ( i == iRandomIndex ) ? CS_TEAM_T : CS_TEAM_CT );
}
}
This code make exolent on other post.
Since I do in order that it works only in the first round?