Forum

> > CS2D > Scripts > kick command
Forums overviewCS2D overview Scripts overviewLog in to reply

English kick command

7 replies
To the start Previous 1 Next To the start

old kick command

vader
User Off Offline

Quote
1
2
3
4
elseif string.sub(txt,1,5)=="!kick" then
	local kickid=tonumber(string.sub(txt,7,8))
	kick(kickid)
end
When i'm using !kick 2 it's don't work
Why?
in console is
LUA ERROR: attempt to call a nil value
why?

old Re: kick command

vader
User Off Offline

Quote
i understand why it don't work... it was end before elseif

old Kick Command

IRAN TOWN
User Off Offline

Quote
• With Hook
1
2
3
4
5
6
addhook('say','say_hook')
function say_hook(id,txt)
if string.sub(txt,1,6)=="!kick " then
parse('kick '..(math.floor(string.sub(txt,7,8)))..' "Kick By Admin"')
end
end

• Without hook
1
2
3
if string.sub(txt,1,6)=="!kick " then
parse('kick '..(math.floor(string.sub(txt,7,8)))..' "Kick By Admin"')
end

> Format, For example : !kick 12
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview