if(UAVSTATUS == true){ switch(gTeam[playerid]){ case TEAM_ARMY:{ for(new i;i<MAX_PLAYERS;i++) SetPlayerMarkerForPlayer(i, playerid, TEAM_COLOR_ARMY); } case TEAM_MAFFIA:{ for(new i;i<MAX_PLAYERS;i++) SetPlayerMarkerForPlayer(i, playerid, TEAM_COLOR_MAFFIA); } } } else { for(new i;i<MAX_PLAYERS;i++) SetPlayerMarkerForPlayer(i, playerid, invisible); }
Originally Posted by DJDhan
What is UAV? Is it like buying it will show the player markers for the player?
|
Originally Posted by DaneAMattie
Yes
so UAV reveals ennemy markers on the map and i made a lil script above (with some help of someone else) but its still not working :/ |
new bool: UAVSTATUS[MAX_PLAYERS];
ShowPlayerMarkers(0);
UAVSTATUS[playerid]=true; switch(gTeam[playerid]) { case TEAM_ARMY: { for(new i=0;i<=GetMaxPlayer();i++) SetPlayerMarkerForPlayer(playerid, i, TEAM_COLOR_MAFFIA); } case TEAM_MAFFIA: { for(new i=0;i<=GetMaxPlayers();i++) SetPlayerMarkerForPlayer(playerid, i, TEAM_COLOR_ARMY); } }
UAVSTATUS[playerid]=false;
Originally Posted by DJDhan
Quote:
On top of script: Код:
new bool: UAVSTATUS[MAX_PLAYERS]; Код:
ShowPlayerMarkers(0); Код:
UAVSTATUS[playerid]=true; switch(gTeam[playerid]) { case TEAM_ARMY: { for(new i=0;i<=GetMaxPlayer();i++) SetPlayerMarkerForPlayer(playerid, i, TEAM_COLOR_MAFFIA); } case TEAM_MAFFIA: { for(new i=0;i<=GetMaxPlayers();i++) SetPlayerMarkerForPlayer(playerid, i, TEAM_COLOR_ARMY); } } Код:
UAVSTATUS[playerid]=false; |
switch(gTeam[playerid]) { case TEAM_ARMY: { for(new i=0;i<=GetMaxPlayer();i++) SetPlayerMarkerForPlayer(playerid, i, TEAM_COLOR_MAFFIA); } case TEAM_MAFFIA: { for(new i=0;i<=GetMaxPlayers();i++) SetPlayerMarkerForPlayer(playerid, i, TEAM_COLOR_ARMY); } }
switch(gTeam[playerid]) { case TEAM_ARMY: { for(new i=0;i<=GetMaxPlayer();i++) if(gTeam[i]==TEAM_MAFFIA) { SetPlayerMarkerForPlayer(playerid, i, TEAM_COLOR_MAFFIA); } } case TEAM_MAFFIA: { for(new i=0;i<=GetMaxPlayers();i++) if(gTeam[i]==TEAM_MAFFIA) { SetPlayerMarkerForPlayer(playerid, i, TEAM_COLOR_ARMY); } } }