Regarding zones.inc
#1

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

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.
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)