Raised This Month: $ Target: $400
 0% 

Get map size (width and length) and player positions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ghostdlr
Senior Member
Join Date: Aug 2010
Old 12-03-2022 , 13:45   Get map size (width and length) and player positions
Reply With Quote #1

I'm making a plugin and I want to display a live preview of the game on my website.

On top of a map image, i want to display the exact position of each player (updated every 5 seconds).

I can use get_user_origin() function to get the player position and it returns something like this:
-1060 1118 -4
I presume first 2 numbers are the X and Y coordinates on the map and the last one is the height where the player is? Can someone confirm this?


I also need to get the map size (width and length) so I can position the players over the map image preview properly.
I couldn't find a function for that. Can anyone help?

Last edited by ghostdlr; 12-03-2022 at 13:46.
ghostdlr is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode