1
return 1
Scripts
Text Command Should Connot Be Seen
Text Command Should Connot Be Seenreturn 1
adminlist = {70919, 14643, 50954, 27690, 58665}
addhook('say', 'AdminSay_Commands')
function AdminSay_Commands(id, text)
for n, w in ipairs(adminlist) do
if w == player(id, 'usgn') then
if text:sub(1,9) == '!teleport' then
local teleport1 = text:sub(11,14)
local teleport2 = text:sub(16,20)
parse('setpos '..id..' '..teleport1..' '..teleport2)
return 1
end
if text:sub(1,6) == '!speed' then
local speed1 = text:sub(8)
parse('speedmod '..id..' '..speed1)
return 1
end
if text:sub(1,6) == '!equip' then
local equip1 = text:sub(8)
parse('equip '..id..' '..equip1)
return 1
end
if text:sub(1,4) == '!ban' then
local ban1 = text:sub(6)
if player(ban1,"exists") then
parse('banip '..player(ban1,'ip')..' 10')
end
return 1
end
if text:sub(1,5) == '!kick' then
local kick1 = text:sub(7)
if player(kick1,"exists") then
parse('kick '..kick1..' Because Your A Bitch!')
end
return 1
end
end
end
end
adminlist = {70919, 14643, 50954, 27690, 58665}
addhook('say', 'AdminSay_Commands')
function AdminSay_Commands(id, text)
for n, w in ipairs(adminlist) do
if w == player(id, 'usgn') then
if text:sub(1,9) == '!teleport' then
local teleport1 = text:sub(11,14)
local teleport2 = text:sub(16,20)
parse('setpos '..id..' '..teleport1..' '..teleport2)
return 1
end
if text:sub(1,6) == '!speed' then
local speed1 = text:sub(8)
parse('speedmod '..id..' '..speed1)
return 1
end
if text:sub(1,6) == '!equip' then
local equip1 = text:sub(8)
parse('equip '..id..' '..equip1)
return 1
end
if text:sub(1,4) == '!ban' then
local ban1 = text:sub(6)
if player(ban1,"exists") then
parse('banip '..player(ban1,'ip')..' 10')
return 1
end
end
if text:sub(1,5) == '!kick' then
local kick1 = text:sub(7)
if player(kick1,"exists") then
parse('kick '..kick1..' Because Your A Bitch!')
return 1
end
end
end
end
end
KagamineLen has written[..Code stuff..]
KagamineLen has written
Jesus, help this kid pass highschool.
KagamineLen has writtenaddhook('say','AdminSay_Speclock',1) -- First priority
addhook('say','AdminSay_Help',2) -- Second
addhook("say","muted",3) -- Third
Cure Pikachu it not workingadminlist = {70919, 14643, 50954, 27690, 58665}
addhook('say', 'AdminSay_Help')
function AdminSay_Help(id, text)
	for n, w in ipairs(adminlist) do
		if w == player(id, 'usgn') then
			if text == '!help' then
				msg2(id,"©000255000!teleport [X] [Y] -- Teleports You To ..x.. ..y.. On The Map")
				msg2(id,"©000255000!speed [Value] -- Gives You a Speed with Value-XX")
				msg2(id,"©000255000!speclock [ID] -- Speclock a Player")
				msg2(id,"©000255000!kick [ID] -- Kick a Player")
				msg2(id,"©000255000!mute [ID] -- Mute a Player")
				msg2(id,"©000255000!ban [ID] -- Ban a Player")
				return 1
			end
		end
	end
end