Thetroz

Cambiar el tiempo con un comando.

Feb 4th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. function eventChatCommand(player, command)
  2.         local args = {}
  3.         for arg in command:gmatch ("[^%s]+") do
  4.                 table.insert (args, arg)
  5.         end                
  6.  
  7.                 if args[1] == "time" then
  8.                             tfm.exec.setGameTime(args[2])
  9.         end
  10.     end
Advertisement
Add Comment
Please, Sign In to add comment