15.10.2010, 10:24
Will this balancer work will it simple not allow them to spawn and keep sending message when thay try to spawn?
Код:
public OnPlayerRequestSpawn(playerid) { new teamcount[2]; for(new i, m = GetMaxPlayers(); i < m; i++) if(IsPlayerConnected(i)) teamcount[gTeam[playerid]]++; if(teamcount[gTeam[playerid]] > teamcount[!gTeam[playerid]]) return SendClientMessage(playerid, RED, "Please Balance The Teams And Pick The Weaker Side!(Press TAB)"), 0; return 0; }