How to detect which city is player in?
#1

Hey, idk how this came to my mind, and i couldnt think of a solution so i'm not at peace. Is it possible to detect which city is player in?

Something like, IsPlayerInLasVenturas /San Fierro/ Los Santos. something like that :P
Reply
#2

I found this: https://sampforum.blast.hk/showthread.php?tid=174407
And: https://sampwiki.blast.hk/wiki/Areacheck
Reply
#3

You can verify if the player is in the area.

if(IsPlayerInArea(playerid, -2997.40, -1115.50, -1213.90, 1659.60)) // SF
if(IsPlayerInArea(playerid, 44.60, -2892.90, 2997.00, -768.00)) // LS
if(IsPlayerInArea(playerid, 869.40, 596.30, 2997.00, 2993.80)) // LV
Reply
#4

Use this topic as AndySedeyn said,
https://sampforum.blast.hk/showthread.php?tid=174407

it's the right way...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)