Need help with 'UAV' Script
#10

Replace
Код:
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);
       }
   }
With this:
Код:
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);
	}
       }
   }
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: 2 Guest(s)