Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eventChatCommand (player, command)
- local args = {}
- for arg in command:gmatch ("[^%s]+") do
- table.insert (args, arg)
- end
- if args[1] == "oveja" and args[2] == "todos" then
- for name,mouse in pairs(tfm.get.room.playerList) do
- tfm.exec.killPlayer (name)
- tfm.exec.addShamanObject (40, mouse.x, mouse.y)
- end
- elseif args[1] == "oveja" and tfm.get.room.playerList[capitalize(args[2])] then
- local mouse = tfm.get.room.playerList[capitalize(args[2])]
- tfm.exec.killPlayer (capitalize(args[2]))
- tfm.exec.addShamanObject (40, mouse.x, mouse.y)
- end
- end
- function capitalize (word)
- return string.upper (word:sub(1,1)) .. string.lower (word:sub(2));
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement