08.08.2011, 15:27
hey guys,
i got some problems with this code:
When the player is spawned, he can see ALL players on radar.
Please help me.
i got some problems with this code:
Код:
public OnPlayerSpawn(playerid) { if(gTeam[playerid] == TEAM_BLUE) { TeamBlueSettings(playerid); //labelblue[playerid] = Create3DTextLabel("Team Blue",COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0); //Attach3DTextLabelToPlayer(labelblue[playerid],playerid,0.0, 0.0, 0.7); } if(gTeam[playerid] == TEAM_RED) { TeamRedSettings(playerid); //labelred[playerid] = Create3DTextLabel("Team Red",COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0); //Attach3DTextLabelToPlayer(labelred[playerid],playerid,0.0, 0.0, 0.7); } Spawned[playerid] = 1; for(new i;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { if(Spawned[i] == 1) { if(gTeam[i] == gTeam[playerid]) { SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(i)); SetPlayerMarkerForPlayer(i, playerid, GetPlayerColor(playerid)); } else { SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(i) & 0xFFFFFF00); SetPlayerMarkerForPlayer(i, playerid, GetPlayerColor(playerid) & 0xFFFFFF00); } } } } return 1; }
Please help me.