I dont know if title is good but i think is the better i found...
Well i made this:
PHP Code:
public My_Cmd()
{
new players[32], num, id
get_players(players, num, "ach")
for(--num; num>=0; num--)
{
id = players[num]
if(Player_Bool[id] == false)
{
if(Bool == false)
Bool = true
}
else
server_cmd("sv_restart 1")
}
}
What i want is if all has the Player_Bool[index] == true, it restart. If 1 or more has Player_Bool[index] == false it sets Bool to true.
Can someone help? Because with this, if one(or more) has Player_Bool[index] == true it restart and i just want restart if all alive players have that bool.
__________________