28.07.2009, 22:55
Quote:
Originally Posted by Fukara_GM
define EastTeam
new EastTeam[MAX_PLAYERS]; |
@topic I don't know how your code would become a "Team balancer" but I would make something like this:
set a variable "gTeam[playerid]" for your Teams (WestTeam = 1 and EastTeam = 0) and define WestSpawn and EastSpawn onto your mode. Those variables can be raised the same way you'll define the gTeam.
Код:
public OnPlayerRequestSpawn(playerid) { if(gTeam[playerid] == 1 && WestSpawn > EastSpawn || gTeam[playerid] == 0 && EastSpawn > WestSpawn) { GameTextForPlayer(playerid, "Please chose another Team!", 3500, 5); return 0; } return 1; }
Good bye
D3nnis