mcer Posted June 19, 2013 Share 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). Link to comment
Castillo Posted June 19, 2013 Share Posted June 19, 2013 Just execute it for that player only? Link to comment
Moderators IIYAMA Posted June 20, 2013 Moderators Share 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) Link to comment
mcer Posted June 20, 2013 Author Share 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). Link to comment
Castillo Posted June 20, 2013 Share Posted June 20, 2013 Loop all players, check their health, if is lower than 20%, set the animation. Link to comment
mcer Posted July 1, 2013 Author Share 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! 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