02.07.2011, 13:34
These are not exsisting functions , you have to make them yourself or it will give you errors.
Can we see the tutorial you used?
Also
maybe these help:
https://sampforum.blast.hk/showthread.php?tid=253018
I didn't make them, you can replace your colours with yours and change the teams to yours, as well.
and the classess.
Can we see the tutorial you used?
Also
maybe these help:
https://sampforum.blast.hk/showthread.php?tid=253018
pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 1)
{
gTeam[playerid] = TEAM_POLICE;
}
if(classid == 2)
{
gTeam[playerid] = TEAM_MAFIA;
}
}
SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_POLICE)
{
SetPlayerColor(playerid, COLOR_AQUA);
}
else if (gTeam[playerid] == TEAM_MAFIA)
{
SetPlayerColor(playerid, COLOR_BROWN);
}
}
and the classess.