Help with Teams TEAM_POLICE etc...
#2

Try this:

pawn Код:
#define TEAM_POLITSEI 1
#define TEAM_INIMENE 2
new gTeam[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
//This script is just an example, to make players automatically become a Police
gTeam[playerid] = TEAM_POLITSEI
}

public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == TEAM_POLITSEI)
{
//Script For Police
}
else if(gTeam[playerid] == TEAM_INIMENE)
{
//Script For Civilian
}
}
Reply


Messages In This Thread
Help with Teams TEAM_POLICE etc... - by hardstop - 24.03.2010, 10:48
Re: Help with Teams TEAM_POLICE etc... - by VirSpectorX - 24.03.2010, 11:15
Re: Help with Teams TEAM_POLICE etc... - by hardstop - 24.03.2010, 19:51

Forum Jump:


Users browsing this thread: 1 Guest(s)