Posts: 31
Threads: 9
Joined: Sep 2011
Reputation:
0
where do i put
SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_GROVE)
{
SetPlayerColor(playerid, TEAM_GROVE_COLOR);
}
else if (gTeam[playerid] == TEAM_BALLA)
{
SetPlayerColor(playerid, TEAM_BALLA_COLOR);
}
}
in team script
Posts: 1,534
Threads: 179
Joined: Apr 2009
Posts: 925
Threads: 36
Joined: Dec 2009
Reputation:
0
@Za guy above:
NO! You put only "SetPlayerToTeamColor(playerid)" under "OnPlayerSpawn".
The "SetPlayerToTeamColor(playerid)" you put between 2 public functions :3
Posts: 31
Threads: 9
Joined: Sep 2011
Reputation:
0
public OnPlayerSpawn(playerid)
{
SetPlayerToTeamColor(playerid);
}
if (gTeam[playerid] == TEAM_GROVE)
{
SetPlayerColor(playerid, TEAM_GROVE_COLOR);
}
else if (gTeam[playerid] == TEAM_BALLA)
{
SetPlayerColor(playerid, TEAM_BALLA_COLOR);
}
}
like that
Posts: 31
Threads: 9
Joined: Sep 2011
Reputation:
0
wait dam i want to build a org like police
Posts: 925
Threads: 36
Joined: Dec 2009
Reputation:
0
Dude, you put the forward thingy ?