mint3d Posted September 20, 2015 Posted September 20, 2015 (edited) DELETED Edited October 17, 2015 by Guest
[PXG]Blue Posted September 20, 2015 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)
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