Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function setClientTime( cmd, newTime )
- newTime = tonumber( newTime )
- if not newTime then outputChatBox( "Enter a number between 0 and 23" ) return end
- if ( newTime > 23 ) or ( newTime < 0 ) then
- outputChatBox( "You must enter a number between 0 and 23." )
- return
- end
- setTime( tonumber( newTime ), 0 )
- end
- addCommandHandler( "settime", setClientTime )
Advertisement
Add Comment
Please, Sign In to add comment