Paste: CN Admin Script
Author: | Chessnut |
Mode: | factor |
Date: | Fri, 21 Jan 2011 00:07:43 |
Plain Text |
cnAdmin = {}
cnAdmin.commands = {}
cnAdmin.commands.stored = {}
function cnAdmin.commands:Register(COMMAND)
cnAdmin.commands.stored[COMMAND.name] = COMMAND.onRun();
concommand.Add("cna_" .. COMMAND.command, COMMAND.onRun());
end;
function cnAdmin.commands:Run(COMMAND)
cnAdmin.commands.stored[COMMAND]();
end;
--Test
local COMMAND = {}
COMMAND.name = "Kick"
COMMAND.command
COMMAND.onRun = "function(player)
player:Kick();
end;"
cnAdmin.commands:Register("kick");
New Annotation