Team Blips
#7

So that's how I defined teams and team blips, but it doesn't work =[

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
        SPAWNED[playerid] = false;
        SetPlayerInterior(playerid,1);
        SetPlayerPos(playerid,292.9160,-30.6521,1001.5156);
        SetPlayerCameraPos(playerid,293.1492,-37.2610,1001.5156);
        SetPlayerCameraLookAt(playerid,292.9160,-30.6521,1001.5156);
        SetPlayerFacingAngle(playerid,177.3484);
        if(classid == 0)
        {
        gTeam[playerid] = TEAM_RUS;
        SetPlayerTeam(playerid,0);
        GameTextForPlayer(playerid,"~r~Russia",3000,4);
        //SetPlayerColor(playerid,0xFF000000);
        SetPlayerColor(playerid,0xFF0000FF);
       
        }
        else if(classid == 1)
        {
        gTeam[playerid] = TEAM_USA;
        SetPlayerTeam(playerid,1);
        GameTextForPlayer(playerid,"~b~United States",3000,4);
        //SetPlayerColor(playerid,0x0000FF00);
        SetPlayerColor(playerid,0x0000FFFF);
        }
       
        for(new i = 0; i < MAX_PLAYERS; i ++)
    {
        if(gTeam[i] == gTeam[playerid])
        {
                    SetPlayerMarkerForPlayer(i, playerid, 0xFFFF00FF);
        }
            else if(gTeam[i] != gTeam[playerid])
        {
                    SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
        }
    }
}
Reply


Messages In This Thread
Team Blips - by UNLIMIT3D - 26.09.2015, 15:17
Re: Team Blips - by CalvinC - 26.09.2015, 18:06
Re: Team Blips - by UNLIMIT3D - 28.09.2015, 06:39
Re: Team Blips - by rappy93 - 28.09.2015, 11:06
Re: Team Blips - by CalvinC - 28.09.2015, 13:18
Re: Team Blips - by NeamPojma - 28.09.2015, 18:22
Re: Team Blips - by UNLIMIT3D - 28.09.2015, 19:01
Re: Team Blips - by UNLIMIT3D - 29.09.2015, 18:13
Re: Team Blips - by UNLIMIT3D - 30.09.2015, 15:09
Re: Team Blips - by CalvinC - 30.09.2015, 15:40

Forum Jump:


Users browsing this thread: 3 Guest(s)