~Funky~ Posted June 23, 2014 Share Posted June 23, 2014 Hola quisiera saber como podría crear un marker pero que solo pueda verlo un solo team, no se que funciones puedo utilizar :c EDIT: intente hacer esto pero no pude ;_; addEventHandler("EnviarMarker",root, function() local x,y,z = getElementPosition(source) local Grupo = getPlayerTeam(source) local Grupos = getPlayersInTeam(Grupo) local MarkerP = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) setElementVisibleTo ( MarkerP, root, true ) setElementVisibleTo ( MarkerP, Grupos, false ) outputChatBox("[sistema De Grupos ] #EFFF00 Se ha creado un Punto de Encuentro !",source,255,255,255,true) end ) Link to comment
BorderLine Posted June 23, 2014 Share Posted June 23, 2014 Source no esta definido. estas usando un trigger desde el client para crear este marker?? Podrias usar un comando Link to comment
~Funky~ Posted June 23, 2014 Author Share Posted June 23, 2014 Client : addEventHandler("onClientGUIClick",getRootElement(), function () if source == Boton[5] then triggerServerEvent("EnviarMarker",getLocalPlayer ( )) end end) estoy usando un Boton :c Link to comment
Recommended Posts