PHP Code:
new iPlayers[2];
new g_iMaxplayers;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
// MaxPlayers
g_iMaxplayers = get_maxplayers();
// Round Start
register_logevent( "EventRoundStart", 2, "1=Round_Start" );
}
public EventRoundStart( )
{
// Loop
for( new i = 1; i < g_iMaxplayers; i++ )
{
if( is_user_connected(i) && is_user_alive( i ) && get_user_team(i) != 3 )
iPlayers[get_user_team(i) - 1]++;
}
}
public yourfunction()
{
if( iPlayers[0] >= 5 && iPlayers[1] >= 5 )
{
// Do...
}
}
__________________