Auto balance
#5

Quote:
Originally Posted by suhrab_mujeeb
Посмотреть сообщение
Well, i can't test it on my local server because i don't have enough (only one (me)) players
so if the code is a tested one that would be great!

Another question, do i have to include an include to call the function GetPlayerTeam(playerid) or it is there already in an include?
EDIT: I think you have to replace > with >=

It is already in an include

When a player spawns as cop:
pawn Код:
SetPlayerTeam(playerid, TEAM_COP);
When a player spawns as terrorist:
pawn Код:
SetPlayerTeam(playerid, TEAM_TERRORIST);
In case you haven't define yet:

pawn Код:
#define TEAM_COP 1
#define TEAM_TERRORIST 2
Reply


Messages In This Thread
Auto balance - by suhrab_mujeeb - 11.09.2011, 12:04
Re: Auto balance - by Pinguinn - 11.09.2011, 12:08
Re: Auto balance - by suhrab_mujeeb - 11.09.2011, 13:13
Re: Auto balance - by DRIFT_HUNTER - 11.09.2011, 13:22
Re: Auto balance - by Pinguinn - 11.09.2011, 13:53
Re: Auto balance - by suhrab_mujeeb - 11.09.2011, 13:58

Forum Jump:


Users browsing this thread: 1 Guest(s)