28.09.2015, 19:01
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);
}
}
}