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(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;
}
}
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?