mint3d Posted September 20, 2015 Share Posted September 20, 2015 (edited) DELETED Edited October 17, 2015 by Guest Link to comment
[PXG]Blue Posted September 20, 2015 Share Posted September 20, 2015 Set the script as server in your meta and replace your code with this: function rotation(thePlayer, cmd,value) if not value then end if value and tonumber(value) >= 0 and tonumber(value) <= 360 then outputChatBox("Rotation set to "..value..".",thePlayer) setElementRotation(thePlayer,0,0,tonumber(value),"default",true) elseif value and tonumber(value) == -1 then outputChatBox("Failed to set rotation.",thePlayer) else outputChatBox("Maximum rotation is between 0 and 360.",thePlayer) end end addCommandHandler("rotation", rotation) Link to comment
mint3d Posted September 20, 2015 Author Share Posted September 20, 2015 Worked 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