IsPlayerInGangZone won't work if the player is not in zone
#1

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;
                        }
                    } 
Reply
#2

else if (!IsPlayerInGangZone)
Reply
#3

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

Someone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)