SA-MP Forums Archive
IsPlayerInGangZone won't work if the player is not in zone - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: IsPlayerInGangZone won't work if the player is not in zone (/showthread.php?tid=645608)



IsPlayerInGangZone won't work if the player is not in zone - Saddin - 30.11.2017

I'm using YSF kurta999's plugin and I'm using IsPlayerInGangZone for zone war.

I'm trying to make when player escape from zone something happens. But it won't be detected.

PHP код:
if(IsPlayerInGangZone(iZoneMap[CurrentZone]))
                    {
                        new 
dbstr[100];
                        
format(dbstr100"* debug_global: %s is in the zone.");
                        
SendClientMessageToAll(COLOR_DEBUGMSGdbstr);    
                    }    
                    else
                    {
                        
player_in_zone_war[i] = 0;
                        
gang_counter_1 --;
                        
GangZoneStopFlashForPlayer(iZoneMap[CurrentZone]);
                        foreach(
Playerj)
                        {
                            if(
PlayerInfo[j][pMember] == zone_T2)
                            {
                                
SetPlayerMarkerForPlayer(ij0xFFFFFF00);
                                
SetPlayerMarkerForPlayer(ji0xFFFFFF00);
                            }
                        }
                        new 
str[100];
                        
format(str100"* %s (%s) escaped."GetName(i), GetOrgName(PlayerInfo[i][pMember]));
                        
SendRadioMsg(zone_T1COLOR_TRUCKDRIVINGstr);
                        
SendRadioMsg(zone_T2COLOR_TRUCKDRIVINGstr);
                        if(
gang_counter_1 == 0)
                        {
                            
zone_war_time 0;
                        }
                    } 



Re: IsPlayerInGangZone won't work if the player is not in zone - rfr - 30.11.2017

else if (!IsPlayerInGangZone)


Re: IsPlayerInGangZone won't work if the player is not in zone - Saddin - 30.11.2017

Quote:
Originally Posted by rfr
Посмотреть сообщение
else if (!IsPlayerInGangZone)
I tried only if(!IsPlayerInGangZone) but it won't be called...


Re: IsPlayerInGangZone won't work if the player is not in zone - Saddin - 01.12.2017

Someone?