Factions
#4

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
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);
    }
}
I didn't make them, you can replace your colours with yours and change the teams to yours, as well.
and the classess.
Reply


Messages In This Thread
Factions - by Glorian - 02.07.2011, 04:06
Re: Factions - by Steven82 - 02.07.2011, 04:41
Re: Factions - by Glorian - 02.07.2011, 13:05
Re: Factions - by Jay. - 02.07.2011, 13:34

Forum Jump:


Users browsing this thread: 2 Guest(s)