25.07.2015, 08:30
(
Последний раз редактировалось Hemeei; 25.07.2015 в 08:31.
Причина: title :3
)
When the player leaves the capture zone , then the flash will stop.
But ! its still flashing and still capturing when the player leaves the zone
Here's the code :
But ! its still flashing and still capturing when the player leaves the zone
Here's the code :
Код:
public OnPlayerLeaveDynamicCP(playerid, checkpointid) { for(new x=0; x < sizeof(CP); x++) { if(checkpointid == CP[x]) { if(Captured[x] == 1) { GangZoneStopFlashForAll(Zone[x]); UnderAttack[x] = 0; InCP[playerid] = 0; tCP[x] = gTeam[playerid]; switch(gTeam[playerid]) { case TEAM_USA: GangZoneShowForAll(Zone[x], COLOR_LIGHTERBLUE); case TEAM_RUSS: GangZoneShowForAll(Zone[x], COLOR_RED); case TEAM_ARAB: GangZoneShowForAll(Zone[x], COLOR_ORANGELIGHT); case TEAM_EURO: GangZoneShowForAll(Zone[x], COLOR_GREENLIGHT); case TEAM_REBELS: GangZoneShowForAll(Zone[x], COLOR_BROWNLIGHT); case TEAM_ASIA: GangZoneShowForAll(Zone[x], COLOR_YELLOW); } } } } return 1; }