Need help with 'UAV' Script
#7

Quote:
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 :/
Right, like treason.
On top of script:
Код:
new bool: UAVSTATUS[MAX_PLAYERS];
Under OnGamemodeInit():
Код:
ShowPlayerMarkers(0);
Then when he buys UAV
Код:
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);
       }
   }
Then OnPlayerDisConnect() or OnPlayerDeath() [wherever you want to end the UAV]
Код:
UAVSTATUS[playerid]=false;
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: 1 Guest(s)