SetPlayerColor when player select the class
#5

Quote:
Originally Posted by pds2012
Посмотреть сообщение
if you can provide us your team variable and team define of grove i can provide you a code.

this is an example that i always do setting color on my server

pawn Код:
stock SetPlayerToTeamColour(playerid)
{
    /**
    First you need to have a team variable
    example to make a colour to a team
    if(TEAM == Grove)
    {
        SetPlayerColor(playerid, COLOR_GREEN
    }
    **/

    return 1;
}
and to make a player to teamcolor when player spawn

pawn Код:
public OnPlayerSpawn(playerid)
{ SetPlayerToTeamColour(playerid); return 1;}
pawn Код:
new Teams [] = {
    TEAM_GROVE_STREET
    TEAM_VAGOS
    TEAM_BALLAS
    TEAM_ITALIAN_MAFIA
    TEAM_LSPD
    TEAM_NATIONAL_GUARD
    TEAM_BALLAS
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)