Need pro scripter help
#1

Hello,am scripting my own samp gang wars server.I have one problem.I was making that if player attacks other team gangzone it will flash with attackers colour.

Here was original script.COLOR_FLASH = Red colours,Flash2 = White colour.

Код:
FlashZoneForPlayer( playerid )
{
    for (new i = 0; i < MAX_TURFS; i++)
	{
         if (turfs[ i ][ TurfWarStarted ] == 1)
         {
			 if (gTeam[playerid] == turfs[ i ][ TurfAttacker ])   GangZoneFlashForPlayer( playerid, i, COLOR_FLASH );
			 else if (gTeam[playerid] == turfs[ i ][ TurfOwner ]) GangZoneFlashForPlayer( playerid, i, COLOR_FLASH );
			 else                                                         GangZoneFlashForPlayer( playerid, i, COLOR_FLASH2 );
		 }
	}
}
So if team is fighting for turf it flashing with red colour and if team not fighting it flashes with white colour.
I want to make that turf will flash to all players with attackers team colour.
I made script:
Код:
FlashZoneForPlayer( playerid )
{
    for (new i = 0; i < MAX_TURFS; i++)
	{
         if (turfs[ i ][ TurfWarStarted ] == 1)
         {
 			if (TEAM_GROVE == turfs[ i ][ TurfAttacker ])   GangZoneFlashForPlayer( playerid, i, COLOR_GREEN );
			 else if (gTeam[playerid] == turfs[ i ][ TurfOwner ]) GangZoneFlashForPlayer( playerid, i, COLOR_GREEN );
			 else                                                 GangZoneFlashForPlayer( playerid, i, COLOR_GREEN );
		 }  
	}
}
I made that if Grove is attacking gangzone it should flash with green colour,but it not flashing.It flashes with red colour.Any help?
Reply
#2

I am using this Los santos turf wars 2.
https://sampforum.blast.hk/showthread.php?tid=45318
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)