[HELP] Team balancer - Im half way there
#4

Quote:
Originally Posted by Fukara_GM
define EastTeam

new EastTeam[MAX_PLAYERS];
Why do you want to define it and then make a "new ...."decleration? it's useless

@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;
}
This is the method I would choose.

Good bye
D3nnis
Reply


Messages In This Thread
[HELP] Team balancer - Im half way there - by Mowgli - 28.07.2009, 22:01
Re: [HELP] Team balancer - Im half way there - by miceiken - 28.07.2009, 22:39
Re: [HELP] Team balancer - Im half way there - by Fukara_GM - 28.07.2009, 22:42
Re: [HELP] Team balancer - Im half way there - by D3nnis - 28.07.2009, 22:55
Re: [HELP] Team balancer - Im half way there - by Mowgli - 28.07.2009, 23:06
Re: [HELP] Team balancer - Im half way there - by D3nnis - 29.07.2009, 10:54

Forum Jump:


Users browsing this thread: 1 Guest(s)