Posts: 47
Threads: 8
Joined: Dec 2018
Reputation:
0
How can I do so that when a player is near a black market, a 'textdraws' appears saying to the player: "Black market is a few meters near your position", and when the player moves away from that area the' textdraw 'is hidden.
Posts: 47
Threads: 8
Joined: Dec 2018
Reputation:
0
Create an area and then call it in "OnPlayerEnterDynamicArea"?
Posts: 47
Threads: 8
Joined: Dec 2018
Reputation:
0
It's okay. By the way, and if I want to check the distance between two players as I would (IsPlayerInRangeOfPoint)?
When a player is near a player who is working as a seller of "Hot dog" also show a 'textdraw'. It occurred to me to use "IsPlayerInRangeOfPoint" with a timer to compare the distance of the 2 players, but that would flood messages.
Posts: 47
Threads: 8
Joined: Dec 2018
Reputation:
0
So, should I start the timer every time the player spawns (OnPlayerSpawn)?