21.01.2012, 00:30
I am trying to have a TD that will show a certain player some general stats around them. Some of which require me to obtain their position and display it on the TD (text-draw). I did this a little while ago using a 1 second timer that would call GetPlayerPos each time the timer was called (every second) and then update the TD- however that didn't seem to work very well.
Therefore, is there any other solution to do this? Or is there a better place for doing this? I would like for the position to update immediately, but I really don't want the server to lag. This will probably only happen for about 5 players at a time because only a select group has the ability to do this and there really won't be more than 5 people using it at the same time.
Anyways, please let me know. Also, could you explain how I could round the float value of their position to coordinates that would fit this?: 000.000
Therefore, is there any other solution to do this? Or is there a better place for doing this? I would like for the position to update immediately, but I really don't want the server to lag. This will probably only happen for about 5 players at a time because only a select group has the ability to do this and there really won't be more than 5 people using it at the same time.
Anyways, please let me know. Also, could you explain how I could round the float value of their position to coordinates that would fit this?: 000.000