Forum

> > CS2D > Scripts > ban/kick script
Forums overviewCS2D overview Scripts overviewLog in to reply

English ban/kick script

4 replies
To the start Previous 1 Next To the start

old ban/kick script

wato24
User Off Offline

Quote
can any body give me a ban and kick script with this admin function:
function checkadmin(id)
     for a = 1,#adminlist do
          if player(id,"usgn") == adminlist[a] then
               return true
          end
     end
     return false
end

and make a vip function same than this admin function

I don't know about scripts
edited 1×, last 13.06.12 04:22:59 pm

old Re: ban/kick script

Sniper_x
User Off Offline

Quote
@user wato24, you can only use console for ban/kick if you use dedicated server, if you use "New Game" only press ESC and press > Players & Bans.

old Re: ban/kick script

BcY
Reviewer Off Offline

Quote
here the code,dude:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
adminlist = {}

addhook("say","kick")
function kick(id,txt)
for i=1,#adminlist do
if player(id,"usgn") == adminlist[i] then
if string.sub(txt, 1, 5) == "!kick" then
local kid = string.sub(txt, 7, 8)
parse("kick "..kid)
return 1
elseif string.sub(txt, 1, 4) == "!ban" then
local bid = string.sub(txt, 6, 7)
local usgn = player(bid,"usgn")
parse("banip "..bid)
if usgn ~= 0 then
parse("banusgn "..usgn)
return 1
end
end
end
end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview