Forum

> > CS2D > Scripts > kick command
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch kick command

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt kick command

vader
User Off Offline

Zitieren
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?

alt Kick Command

IRAN TOWN
User Off Offline

Zitieren
• 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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht