nokizorque

Untitled

Jul 24th, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. function setClientTime( cmd, newTime )
  2.     newTime = tonumber( newTime )
  3.     if not newTime then outputChatBox( "Enter a number between 0 and 23" ) return end
  4.     if ( newTime > 23 ) or ( newTime < 0 ) then
  5.         outputChatBox( "You must enter a number between 0 and 23." )
  6.         return
  7.     end
  8.     setTime( tonumber( newTime ), 0 )
  9. end
  10. addCommandHandler( "settime", setClientTime )
Advertisement
Add Comment
Please, Sign In to add comment