Script problems
#5

OK here is the code ask if you need something else


pawn Код:
#define TEAM_Cop 1
#define TEAM_Mafia 2
#define TEAM_Swat 3

static gTeam[MAX_PLAYERS];
forward SetPlayerToTeamColor(playerid);

Code:
public OnPlayerSpawn(playerid)
{

    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,0);

   
    if(gTeam[playerid] == TEAM_Cop)
    {
   
    SetPlayerTeam(playerid,1);
    }
    else if(gTeam[playerid] == TEAM_Swat)
    {
   
    SetPlayerTeam(playerid,1);
    }
    else if(gTeam[playerid] == TEAM_Mafia)
    {
   
    SetPlayerTeam(playerid, 2);
    }

    return 1;
}
P.S : cops and swat have different colors on radar
Reply


Messages In This Thread
Script problems - by gereter - 25.08.2010, 02:20
Re: Script problems - by willsuckformoney - 25.08.2010, 02:37
Re: Script problems - by gereter - 25.08.2010, 03:03
Re: Script problems - by General Abe - 25.08.2010, 03:07
Re: Script problems - by gereter - 25.08.2010, 03:16
Re: Script problems - by willsuckformoney - 25.08.2010, 03:28
Re: Script problems - by gereter - 25.08.2010, 03:37
Re: Script problems - by willsuckformoney - 25.08.2010, 03:38
Re: Script problems - by gereter - 25.08.2010, 03:58
Re: Script problems - by willsuckformoney - 25.08.2010, 04:27

Forum Jump:


Users browsing this thread: 2 Guest(s)