SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 09 Dec 2012 08:47 AM |
local Admins = {"SN0X"}
local function GetArguements(string) local s = string .. '/' local args = {} repeat args[#args+1] = s:sub(1, s:find('/')-1) s = s:sub(s:find('/')+1, s:len()) until not s:find('/') return args end
local commands = {}
function commands.ADMINTEST(c, a) local hint = Instance.new("Hint") if a[2]:lower() == "me" then hint.Parent = Workspace hint.Text= "admin yay" end end
Game.Players.PlayerAdded:connect(function(p) if Admins[p.Name] ~= nil then local args = {} p.Chatted:connect(function(c) args = GetArguements(c) if commands[args[1]:upper()] ~= nil then commands[args[1]:upper()](p, args) end end) end end)
When I chat "admintest/me", nothing happens :/ |
|
|
| Report Abuse |
|