SetPlayerTeam - question related this
#5

I'd suggest PVars.

You can define your teams like
Код:
#define TEAM_X 0
#define TEAM_Y 1
#define TEAM_Z 2
then you can use this for setting teams
Код:
SetPVarInt(playerid, "team", TEAM_X);
and for checking team
Код:
if(GetPVarInt(playerid, "team") == TEAM_X)
I prefer PVars to normal variables because the ease of use (no need to define them) and they can also be reached from filterscripts + they are reseted automatically on disconnect, just what we want in this case. But this is just one example, there are many many ways of setting teams.
Reply


Messages In This Thread
SetPlayerTeam - question related this - by BoboRi - 28.11.2011, 21:35
Re: SetPlayerTeam - question related this - by grand.Theft.Otto - 28.11.2011, 23:33
Re: SetPlayerTeam - question related this - by Johnson_boy - 29.11.2011, 06:28
Re: SetPlayerTeam - question related this - by BoboRi - 29.11.2011, 17:08
Re: SetPlayerTeam - question related this - by Johnson_boy - 29.11.2011, 17:14
Re: SetPlayerTeam - question related this - by BoboRi - 29.11.2011, 17:20
Re: SetPlayerTeam - question related this - by BoboRi - 29.11.2011, 19:29
Re: SetPlayerTeam - question related this - by MP2 - 29.11.2011, 19:32
Re: SetPlayerTeam - question related this - by BoboRi - 29.11.2011, 19:34
Re: SetPlayerTeam - question related this - by MP2 - 29.11.2011, 19:39

Forum Jump:


Users browsing this thread: 1 Guest(s)