24.03.2010, 11:15
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
}
}