Regarding zones.inc - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Regarding zones.inc (
/showthread.php?tid=178790)
Regarding zones.inc -
xxxDunecatxxx - 24.09.2010
Hello, I was wondering how I could use one of the functions in the zones include to detect what CITY a player is in, not the zone.
I know it's possible as I've seen it on other servers. Help would be greatly appreciated.
Thanks
Re: Regarding zones.inc -
mick88 - 24.09.2010
Zones.inc isn't a standard include so I wouldn't know, but if you want to know how to detect the city player is in, you can look into my weather streamer - it has the major cities defined.
Re: Regarding zones.inc -
Voldemort - 24.09.2010
On player spawn set
PlayerCity[playerid] = 1; // LS
PlayerCity[playerid] = 2; // SF
PlayerCity[playerid] = 3; // LV
And on each bridge when player is at point
pawn Код:
if(PlayerCity[playerid] != 3 && IsPlayerInRangeOfPoint..))
{
PlayerCity[playerid] = 3;
SendCityMessage(playerid,"Welcome to Las Venturas"); // Adjust your own
}
Most important is to set right city at spawn, because later you control it