07.03.2011, 19:40
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.
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:
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?
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 ); } } }
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 ); } } }