Need help with 'UAV' Script
#1

So i put this on OnPlayerSpawn:

Код:
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);
  }
on GameModeInit
UAVSTATUS = false
and if someone buys a UAV it will be true
But the players are still visible :/
Reply


Messages In This Thread
Need help with 'UAV' Script - by DaneAMattie - 16.05.2010, 18:25
Re: Need help with 'UAV' Script - by DaneAMattie - 16.05.2010, 19:12
Re: Need help with 'UAV' Script - by DaneAMattie - 17.05.2010, 10:26
Re: Need help with 'UAV' Script - by DJDhan - 17.05.2010, 11:23
Re: Need help with 'UAV' Script - by ViruZZzZ_ChiLLL - 17.05.2010, 11:26
Re: Need help with 'UAV' Script - by DaneAMattie - 17.05.2010, 11:41
Re: Need help with 'UAV' Script - by DJDhan - 17.05.2010, 11:50
Re: Need help with 'UAV' Script - by CracK - 17.05.2010, 12:04
Re: Need help with 'UAV' Script - by DaneAMattie - 17.05.2010, 12:07
Re: Need help with 'UAV' Script - by DJDhan - 17.05.2010, 12:14

Forum Jump:


Users browsing this thread: 4 Guest(s)