Firespider Posted July 19, 2022 Share Posted July 19, 2022 How can I make a Marker visible to a person or a team? Link to comment
Mr.Hugin Posted July 19, 2022 Share Posted July 19, 2022 3 hours ago, Firespider said: How can I make a Marker visible to a person or a team? I don't understand what you want to do Link to comment
Firespider Posted July 19, 2022 Author Share Posted July 19, 2022 I would like the Marker to be seen only by a special person PL balu895 but not other players, is this possible? Link to comment
vx200 Posted July 19, 2022 Share Posted July 19, 2022 (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 July 19, 2022 by tasty Link to comment
Firespider Posted July 19, 2022 Author Share Posted July 19, 2022 How can I enter the player's name? Link to comment
#\_oskar_/# Posted July 20, 2022 Share Posted July 20, 2022 If you want to show the marker by player name use getPlayerName Link to comment
Firespider Posted July 20, 2022 Author Share Posted July 20, 2022 Can it work like this? Link to comment
Firespider Posted July 20, 2022 Author Share Posted July 20, 2022 How can I solve it? Link to comment
#\_oskar_/# Posted July 20, 2022 Share Posted July 20, 2022 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) Link to comment
Addlibs Posted July 20, 2022 Share Posted July 20, 2022 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. Link to comment
Firespider Posted July 20, 2022 Author Share Posted July 20, 2022 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? Link to comment
Firespider Posted July 20, 2022 Author Share Posted July 20, 2022 Can you help with this too? Link to comment
Addlibs Posted July 21, 2022 Share Posted July 21, 2022 You need to spawnPlayer and fadeCamera on onPlayerJoin. Link to comment
Firespider Posted July 21, 2022 Author Share Posted July 21, 2022 Won't this interfere with my account system to always spawn them on spawn? Link to comment
Firespider Posted July 21, 2022 Author Share Posted July 21, 2022 Can I make it so that only one team can see the given picture? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now