Thetroz

Poner un nombre en color al ejecutar un comando.

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