Jump to content

Please help me


Recommended Posts

Posted (edited)

You can set the element visible to in the marker:
 

marker createMarker ( float x, float y, float z [, string theType = "checkpoint", float size = 4.0, int r = 0, int g = 0, int b = 255, int a = 255, element visibleTo = getRootElement( ) ] )

 

Edited by tasty

Linux System Administrator
Contact me on discord, on3pixel. I can help you if you need anything.


If I helped you, leave a like on my comment.

Posted
function createMarkerByPlayerName (name , ...) for i,p in ipairs(getElementsByType('player')) do
if getPlayerName (p) == name then return createMarker (...) end end end

--ex
marker = createMarkerByPlayerName ('#|_oskar_|#', -2404, -598, 132)

 

TehLMGN.png?1

 

سبحان الله وبحمده سبحان الله العظيم

Posted

Don't use getPlayerName (this takes a player element as input and returns a string) but rather getPlayerFromName (this takes a string as input and returns a player element). Note that you will need to add extra code to handle the player connecting and disconnecting, as the player element will change when a client reconnects.

Previously known as MrTasty.

Posted

Ok. 

Is there anything else when a player enters he sees a black image and I can only solve it by turning on Freeroam, could this not be done automatically so that they can see everything?
 
Can you help with this too?
 
 
 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...