devildead622 Posted February 17, 2013 Share Posted February 17, 2013 how to have a command to mark the position of somewhere (for example with the command: /mark) and then return to this place with another command (example: /gomark) Only for admin? Link to comment
tosfera Posted February 17, 2013 Share Posted February 17, 2013 Well, I can give you the script and you'll be happy and stuff. But you wont learn from it. I'll just give you a few tips. isObjectInACLGroup addCommandHandler setElementPosition setAccountData getAccountData Link to comment
PaiN^ Posted February 17, 2013 Share Posted February 17, 2013 Well, I can give you the script and you'll be happy and stuff. But you wont learn from it. I'll just give you a few tips. isObjectInACLGroup addCommandHandler setElementPosition setAccountData getAccountData I don't thing that the functions : setAccountData, getAccountData Are required for this type of code . + He said he wants a marker to be created so he will need these functions : isObjectInACLGroup -- server only function getElementPosition -- server and client function setElementPosition -- server and client function createMarker -- server and client function -------------------- addCommandHandler -- server and client side **NOTE : This code will be server side !! Link to comment
tosfera Posted February 17, 2013 Share Posted February 17, 2013 Well, I can give you the script and you'll be happy and stuff. But you wont learn from it. I'll just give you a few tips. isObjectInACLGroup addCommandHandler setElementPosition setAccountData getAccountData I don't thing that the functions : setAccountData, getAccountData Are required for this type of code . + He said he wants a marker to be created so he will need these functions : isObjectInACLGroup -- server only function getElementPosition -- server and client function setElementPosition -- server and client function createMarker -- server and client function -------------------- addCommandHandler -- server and client side **NOTE : This code will be server side !! Hmmm you're working with a marker. BUT, just a single question. What is he wants to save it like a checkpoint? even when he logs out? Cause everything I make, will be saved. And if he wants to save them he does need those 2 functions. Link to comment
PaiN^ Posted February 17, 2013 Share Posted February 17, 2013 You're right, I didn't put that in mind Link to comment
tosfera Posted February 17, 2013 Share Posted February 17, 2013 @devildead622, if you're stuck. I made the script for you. so if you rly can't find it out, I can give you a part so you can continue with it. 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