mcer Posted June 19, 2013 Posted June 19, 2013 I mean how to make a function and an event "Triggered" on serverside only appears for one user and not for everyone. (Can't be clientside).
Castillo Posted June 19, 2013 Posted June 19, 2013 Just execute it for that player only? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Moderators IIYAMA Posted June 20, 2013 Moderators Posted June 20, 2013 It depends what you want to make. Be more specific. You mean something like this? addEvent("myEvent",true) addEventHandler("myEvent",root, function (x,y,z) if isElement(source) then -- make sure the player does still exist before the data reached the server. setElementPosition (source,x,y,z) end end) Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
mcer Posted June 20, 2013 Author Posted June 20, 2013 I want to use the "Setpedanimation" in server side, but for a specific user only (The user who has less than 20 blood).
Castillo Posted June 20, 2013 Posted June 20, 2013 Loop all players, check their health, if is lower than 20%, set the animation. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
mcer Posted July 1, 2013 Author Posted July 1, 2013 Loop all players, check their health, if is lower than 20%, set the animation. Oh, sorry i never reply this... Thanks!
Castillo Posted July 1, 2013 Posted July 1, 2013 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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