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(i, ZoneMap[CurrentZone]))
                    {
                        new 
dbstr[100];
                        
format(dbstr, 100, "* debug_global: %s is in the zone.");
                        
SendClientMessageToAll(COLOR_DEBUGMSG, dbstr);    
                    }    
                    else
                    {
                        
player_in_zone_war[i] = 0;
                        
gang_counter_1 --;
                        
GangZoneStopFlashForPlayer(i, ZoneMap[CurrentZone]);
                        foreach(
Player, j)
                        {
                            if(
PlayerInfo[j][pMember] == zone_T2)
                            {
                                
SetPlayerMarkerForPlayer(i, j, 0xFFFFFF00);
                                
SetPlayerMarkerForPlayer(j, i, 0xFFFFFF00);
                            }
                        }
                        new 
str[100];
                        
format(str, 100, "* %s (%s) escaped.", GetName(i), GetOrgName(PlayerInfo[i][pMember]));
                        
SendRadioMsg(zone_T1, COLOR_TRUCKDRIVING, str);
                        
SendRadioMsg(zone_T2, COLOR_TRUCKDRIVING, str);
                        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)