16.05.2010, 18:25
So i put this on OnPlayerSpawn:
on GameModeInit
UAVSTATUS = false
and if someone buys a UAV it will be true
But the players are still visible :/
Код:
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);
}
UAVSTATUS = false
and if someone buys a UAV it will be true
But the players are still visible :/


Unmanned Aerial Vehicle?

