kir2956 Posted May 17, 2016 Share Posted May 17, 2016 Приветствую, сделана панелька на dx, не могу понять каким образом сделать так что когда встаешь на маркер что бы панель вылезала только у того кто встал а не у всех игроков. Marker123 = createMarker (2, 2, 2, "cylinder", 1.5, 255, 255, 255, 170) function markers(thePlayer) if thePlayer == getLocalPlayer() then addEventHandler ("onClientRender", root, panel) end end addEventHandler("onClientMarkerHit",Marker123,markers) С этим вроде работает, но будто циклом запускает панельку, открывается и закрывается за секунду. Link to comment
kir2956 Posted May 17, 2016 Author Share Posted May 17, 2016 Помогли, спасибо) if source == Marker123 and thePlayer == getLocalPlayer() then panel(thePlayer) 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