where do i find the colours of the teams?
#2

pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
    switch(classid)
    {
        case 0 .. 2: gTeam[playerid] = TEAM_GROVE; // Case 0, 1, 2 are TEAM_GROVE
        case 3 .. 5: gTeam[playerid] = TEAM_BALLA; // Case 3, 4, 5 are TEAM_BALLA
        case 6 .. 8: gTeam[playerid] = TEAM_VAGOS; // Case 6, 7, 8 are TEAM_VAGOS
        case 9: gTeam[playerid] = TEAM_CJ; // Case 9 is TEAM_CJ
    }
}
Change the teams you use, and the classid's aswell

Edit:
pawn Код:
SetPlayerToTeamColour(playerid)
{
    if(gTeam[playerid] == TEAM_GROVE)
    {
        SetPlayerColor(playerid, color here);
    }
    else if (gTeam[playerid] == TEAM_BALLA)
    {
        SetPlayerColor(playerid, color here);
    }
    else if (gTeam[playerid] == TEAM_VAGOS)
    {
        SetPlayerColor(playerid, color here);
    }
    else if (gTeam[playerid] == TEAM_CJ)
    {
        SetPlayerColor(playerid, color here);
    }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)