i had the same idea but how you say, this can be a mini problem.
i want to check survivor/s @ round end and set 1 T to ct for new round ( if there are < 10 players) or set 2 Ts to CT when there are more then 10 players.
thats what i wanted to do :
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("round_end", 2, "1=Round_End")
}
public round_end()
{
new survived_players
new p_playernum;
p_playernum = get_playersnum(1);
for ( new i; i < iNum; i++ )
{
if(is_user_alive(i))
{
survived_players++
}
}
if(survived_players >= 1 && p_playernum < 10)
{
//set 1 T to CT
}
else if(survived_players >= 1 && p_playernum > 10)
{
//set 2 T's to CT
}
}
i think this code is correct but i want to know if is there a better way to do this or not?

or maybe is my code not correct ?
__________________