Weapons
#6

I don't want a dialog...

pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
    if(classid == 0)
    {
        gTeam[playerid] = TEAM_MAFIA;
        GameTextForPlayer(playerid, "Mafia", 2000, 5);
    }
    else if(classid == 1)
    {
        gTeam[playerid] = TEAM_POLICE;
        GameTextForPlayer(playerid, "Police", 2000, 5);
    }
    else if(classid == 2)
    {
        gTeam[playerid] = TEAM_GROVE;
        GameTextForPlayer(playerid, "Grove", 2000, 5);
    }
    else if(classid == 3)
    {
        gTeam[playerid] = TEAM_BALLAS;
        GameTextForPlayer(playerid, "Ballas", 2000, 5);
    }
    else if(classid == 4)
    {
        gTeam[playerid] = TEAM_BIKERS;
        GameTextForPlayer(playerid, "Bikers", 2000, 5);
    }
    return 1;
}
//------------------------------------------------------------------------------
SetPlayerToTeamColor(playerid)
{
    if(gTeam[playerid] == TEAM_MAFIA)
    {
        SetPlayerColor(playerid, COLOR_MAFIA);
    }
    else if(gTeam[playerid] == TEAM_POLICE)
    {
        SetPlayerColor(playerid, POLICE_COLOR);
    }
    else if(gTeam[playerid] == TEAM_GROVE)
    {
        SetPlayerColor(playerid, GROVE_COLOR);
    }
    else if(gTeam[playerid] == TEAM_BALLAS)
    {
        SetPlayerColor(playerid, BALLAS_COLOR);
    }
    else if(gTeam[playerid] == TEAM_BIKERS)
    {
        SetPlayerColor(playerid, BIKERS_COLOR);
    }

}
Reply


Messages In This Thread
Weapons - by HighPitchedVoice - 24.05.2012, 11:40
Re: Weapons - by HighPitchedVoice - 24.05.2012, 11:54
Re: Weapons - by Jarnu - 24.05.2012, 12:07
Re: Weapons - by HighPitchedVoice - 24.05.2012, 12:10
Re: Weapons - by Jarnu - 24.05.2012, 12:13
Re: Weapons - by HighPitchedVoice - 24.05.2012, 12:18
Re: Weapons - by Jarnu - 24.05.2012, 12:20
Re: Weapons - by vIBIENNYx - 24.05.2012, 12:32
Re: Weapons - by SuperViper - 24.05.2012, 14:20

Forum Jump:


Users browsing this thread: 1 Guest(s)