Identify player locations
#1

I made a text drawing on my server to warn the player where it is. Example: "Place: Los Santos". But how do I know exactly where it is? By this I mean to know if it is in "Las venturas", "los santos", "san fierro", "airport (Ls, Lv or Sf)", "the beach", etc. and so with more places.
Reply
#2

Get the player's position https://sampwiki.blast.hk/wiki/GetPlayerPos and check if he's in a range https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint try using the wiki its helpful
Reply
#3

Sorry, I was also referring to whether to use a timer to detect when the player enters a zone or use "OnPlayerEnterDynamicArea"
Reply
#4

If I use the timer do I have to use it in OngamemodeInit or OnPlayerConnect?
Reply
#5

Start it per-player at onplayerconnect and kill it at onplayerdisconnect
Reply
#6

So, would it be better to use a timer than "OnPlayerEnterDynamicArea"? I use "CreateDynamicRectangle" for zones.
Reply
#7

Think logically.

When does 'OnPlayerEnterDynamicArea' get called? When a player enters a dynamic area.

"I use "CreateDynamicRectangle" for zones"..

What do you think the answer would be?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)