English ban/kick script

4 replies
Goto Page
To the start Previous 1 Next To the start
13.06.12 04:14:15 pm
Up
wato24
User
Offline Off
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
13.06.12 04:18:14 pm
Up
Seekay
Reviewer
Offline Off
Code:
1
Use the god damn code tags
I know a good slipgate to shove you in
13.06.12 04:23:01 pm
Up
Suprise
BANNED
Offline Off
13.06.12 07:58:15 pm
Up
Sniper_x
User
Offline Off
@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.
IMG:http://www.danasoft.com/sig/Kill117524.jpg
13.06.12 08:16:51 pm
Up
BcY
User
Offline Off
here the code,dude:
Code:
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
Kgb2d Community - Since 2012
To the start Previous 1 Next To the start