All pastes #232776 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-11-01 15:06 UTC
rendered paste body
static gTeam[MAX_PLAYERS];

#define TEAM_COP 0
#define TEAM_CIVILLIAN 1

That's the top...

Here's the script:
public OnPlayerSpawn(playerid)
{
	new playername[MAX_PLAYER_NAME];
	
    GetPlayerName(playerid, playername, sizeof(playername));
	GivePlayerMoney(playerid, PocketMoney);
	SetPlayerInterior(playerid,0);
	SetPlayerRandomSpawn(playerid);
	
 	if(gTeam[playerid] == TEAM_COP) {
    SetPlayerColor(playerid,COLOR_BLUE); // Blue
        }
    else if (gTeam[playerid] == TEAM_CIVILLIAN) {
        SetPlayerColor(playerid,COLOR_WHITE); //White
        }
	return 1;
}