remove this becase he isnt in yet and if he is he cant pick becase motd and the team menu is in the way.
PHP Code:
public client_putintserver(id)
{
if(PlayerXP[id] == 0 && PlayerClass[id] == 0 && PlayerLevel[id] == 0)
{
ChooseClass(id);
}
}
this opens the menu on round start if he hasnt picked a class
PHP Code:
public plugin_init()
{
register_logevent("Round_start", 2, "1=Round_Start")
}
public Round_start()
{
new i
for (i=0; i<33; i++)
{
if(is_user_connected(i) && PlayerClass[i] == 0)
{
ChooseClass(i);
}
}
}
shuld i clean up the code?
__________________