Forum

> > CS2D > Scripts > Function Script
Forums overviewCS2D overview Scripts overviewLog in to reply

English Function Script

7 replies
To the start Previous 1 Next To the start

old Function Script

J_Lucas
User Off Offline

Quote
I'm here because i need know one thing
how make admin functions
like
• !kick
• !ban
• !makect
• !maket
• etc...

because i want make a lua for my server , without server actions and without admin tag
i tryed use 4 admins script , but them causes a bug , double say/talk
now i need an answer of an scripter .
send the code please

old Re: Function Script

J_Lucas
User Off Offline

Quote
error , my net shutdown when i going post , error
how delete old post ???
edited 1×, last 28.12.12 08:45:37 pm

old Re: Function Script

Suprise
BANNED Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
addhook("say","_say")
function _say(id,txt)
	if txt:lower():sub(1,5) == "!kick" then
		tokick = txt:sub(7,8)
		toreason = txt:sub(9)
		parse("kick "..tokick.." "..toreason)
	elseif txt:lower():sub(1,4) == "!ban" then
		toban = txt:sub(6)
		parse("banusgn "..toban)
		parse("banip "..toban)
	elseif txt:lower():sub(1,7) == "!makect" then
		tomake = txt:sub(9)
		parse("makect "..tomake)
	elseif txt:lower():sub(1,6) == "!maket" then
		tomake = txt:sub(8)
		parse("maket "..tomake)
	end
end

etc..
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview