Firespider Posted July 19, 2022 Posted July 19, 2022 How can I make a Marker visible to a person or a team?
Mr.Hugin Posted July 19, 2022 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
Firespider Posted July 19, 2022 Author 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?
vx200 Posted July 19, 2022 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
#\_oskar_/# Posted July 20, 2022 Posted July 20, 2022 If you want to show the marker by player name use getPlayerName
#\_oskar_/# Posted July 20, 2022 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)
Addlibs Posted July 20, 2022 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.
Firespider Posted July 20, 2022 Author 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?
Addlibs Posted July 21, 2022 Posted July 21, 2022 You need to spawnPlayer and fadeCamera on onPlayerJoin.
Firespider Posted July 21, 2022 Author Posted July 21, 2022 Won't this interfere with my account system to always spawn them on spawn?
Firespider Posted July 21, 2022 Author Posted July 21, 2022 Can I make it so that only one team can see the given picture?
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