Hi guys!
I made a menu to replace the original "M" menu of counter strike 1.6, but the problem is if there's no one playing and 1 was on spectator and wants to play, he joins for example CT team with my menu but i will stay dead until someone joins the server on terrorist side or if he disconect and connect again on the server.
I tryed this was to fix it but it doesn't work because the player doesn't respawn and I don't know why, someone have another idea?
PHP Code:
for(new i; i < 33; i++)
{
new players[33], numplay
if(cs_get_user_team(i) == CS_TEAM_CT/*this is just an example for one team, in this case for CT team*/ && is_user_alive(i))
{
players[numplay++] = i
}
if (numplay == 0)
{
ExecuteHamB(Ham_CS_RoundRespawn,id)
user_silentkill(id/*this "id" is already assigned as the player who opened the menu"*/)
}
}
__________________