Forum

> > CS2D > Scripts > Say !kick to kick
Forums overviewCS2D overview Scripts overviewLog in to reply

English Say !kick to kick

2 replies
To the start Previous 1 Next To the start

old Say !kick to kick

DragonAwper
User Off Offline

Quote
>i want to create a lua that when i say:
!kick [id]

kick the id that i wrote

==============================================
when i say:
!kick 1
kick the id 1
==============================================

i know, it's easy but i don't know how to do this.

Help me pls

old Re: Say !kick to kick

Patasuss
User Off Offline

Quote
1
2
3
4
5
6
addhook("say","saykick")
function saykick(id, txt)
	if(string.sub(txt,1,5)=="!kick") then
		parse("kick "..(tonumber(string.sub(txt,7,string.len(txt)))).." Kicked!")
	end
end
Not tested

old Re: Say !kick to kick

omg
User Off Offline

Quote
why would u want a lua script for that? use rcon commands like kick (ID) its already there
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview