!i [itemID] gives me that item
!i [id] [itemID] gives item to selected id.
------------------
!i 82 --> I wore medic armor.
!i 2 82 --> id 2 wore medic armor.
------------------------
and !spawn [itemID]
Thank you
/equip [playerID] [itemID]
function split(string) local c = {} for word in string.gmatch(string, '[^%s]+') do table.insert(c, word) end return c end addhook("say","OnSay") function OnSay(id,text) local v = split(text) if v[1] == "!i" then 	if v[2] == nil then 		parse("equip "..id.." "..v[3]) 			msg2(id,"©255255255New Weapon") 		return 1 		end 	if player(v[2],"exists") then 		parse("equip "..v[2].." "..v[3]) 			msg2(v[2],"©255255255Admin "..player(id,"name").." Gave to you a new Weapon") 			return 1 		end 		elseif v[1] == "!spawn" then 		parse("spawnitem "..v[2].." "..v[3].." "..v[4]) 		return 1 	end end
function split(string) local c = {} for word in string.gmatch(string, '[^%s]+') do table.insert(c, word) end return c end adminList = {xxxxx} addhook("say","OnSay") function OnSay(id,text) local v = split(text) for _, key in ipairs(adminList) do if player(id,"usgn") == key then if v[1] == "!i" then 	if not player(v[2],"exists") then 		parse("equip "..id.." "..v[2]) 			msg2(id,"©255255255New Weapon") 		return 1 		end 	if player(v[2],"exists") then 		parse("equip "..v[2].." "..v[3]) 			msg2(v[2],"©255255255Admin "..player(id,"name").." Gave to you a new Weapon") 			return 1 		end 		elseif v[1] == "!spawn" then 		parse("spawnitem "..v[2].." "..player(id,"tilex").." "..player(id,"tiley")) 		return 1 		end 		end 	end end
members = {xxxxx,xxxxx} local a = members addhook("say","command") function command(id,txt) for _, usgn in pairs(members) do if player(id,"usgn") == usgn then if string.sub(txt, 1, 2) == "!k" then local kid = string.sub(txt, 4, 5) parse("kick "..kid) msg2(a,"©255000000Kicked Player: "..player(id,"name")) return 1 end end end end
admins = {1,108942} commands = {"!equip","!spawn","!kick"} cmd = {} addhook("say","cmd.say") function cmd.say(id,txt) 	local p = ToTable(txt) 	local cmd = string.lower(p[1]) 	if txt:sub(1,1) == "!" and txt ~= "rank" then 		if cmd == commands[1] then 			if Player[id].admin then 				local pl = tonumber(p[2]) 				local item = tonumber(p[3]) 				if pl ~= nil and item ~= nil then 					parse("equip "..pl.." "..item) 				elseif pl ~= nil and item == nil then 					parse("equip "..id.." "..pl) 				else 					msg2(id,string.char(169).."200000000Correct syntax: "..commands[1].." [playerid] <itemid>") 				end 			else 				noadm(id) 			end 		elseif cmd == commands[2] then 			if Player[id].admin then 				local item = tonumber(p[2]) 				if item ~= nil then 					parse("spawnitem "..item.." "..player(id,"tilex").." "..player(id,"tiley")) 				else 					msg2(id,string.char(169).."200000000Correct syntax: "..commands[2].." <itemid>") 				end 			else 				noadm(id) 			end 		elseif cmd == commands[3] then 			if Player[id].admin then 				local pl = tonumber(p[2]) 				if pl ~= nil then 					msg2(id,string.char(169).."200000000"..player(pl,"name").." has been kicked!") 					parse("kick "..pl) 				else 					msg2(id,string.char(169).."200000000Correct syntax: "..commands[3].." <playerid>") 				end 			else 				noadm(id) 			end 		else 			msg2(id,string.char(169).."200000000Unknown command: ["..txt.."]") 		end 		return 1 	end end Player = {} addhook("join","cmd.join") function cmd.join(id) 	if not player(id,"bot") then 		Player[id] = {} 		Player[id].admin = false 		for _, i in pairs(admins) do 			if player(id,"usgn") == i then 				Player[id].admin = true 			end 		end 	end end function noadm(id) 	msg2(id,string.char(169).."200000000You don't have enough level to do this!") end function ToTable(t, match) 	local cmd = {}; 	if not match then match = "[^%s]+" end 	for word in string.gmatch(t,match) do 		table.insert(cmd,word) 	end 	return cmd end
members = {xxxxx,xxxxx} local a = members addhook("say","command") function command(id,txt) for _, usgn in pairs(members) do if player(id,"usgn") == usgn then if string.sub(txt, 1, 2) == "!k" then local kid = string.sub(txt, 4, 5) parse("kick "..kid) msg2(a,"©255000000Kicked Player: "..player(id,"name")) return 1 end end end end
msg2(a,"©255000000Kicked Player: "..player(id,"name"))
members = {xxxxx,xxxxx} addhook("say","command") function command(id,txt) 	if string.sub(txt, 1, 2) == "!k" then 		local kid = string.sub(txt, 4, 5) 		for _, usgn in pairs(members) do 			if player(id,"usgn") == usgn then 				parse("kick "..kid) 				for __,pid in pairs(player(0,"table")) do 					if player(pid,"usgn")==usgn then 					msg2(pid,"©255000000Kicked Player: "..player(id,"name")) 					end 				end 			end 		end 		return 1 	end end
local p = totable(txt) local cmd = tostring(p[1]) local pl = tonumber(p[2]) if cmd == "!k" then parse("kick "..pl) for __,pid in pairs(player(0,"table")) do if player(pid,"usgn")==usgn then msg2(pid,"©255000000Admin "..player(id,"name").." Kicked "..player(pl,"name")) end end return 1
members = {xxxxx,xxxxx} addhook("say","command") function command(id,txt) if string.sub(txt, 1, 2) == "!k" then local kid = string.sub(txt, 4, 5) for _, usgn in pairs(members) do if player(id,"usgn") == usgn then for __,pid in pairs(player(0,"table")) do if player(pid,"usgn")==usgn then msg2(pid,"©255000000Kicked Player: "..player(id,"name")) end end 				 parse("kick "..kid) end 			end return 1 end end