Forum

> > CS2D > Servers > how to ban someone only in my server
Forums overviewCS2D overview Servers overviewLog in to reply

English how to ban someone only in my server

10 replies
To the start Previous 1 Next To the start

old Re: how to ban someone only in my server

Mora
User Off Offline

Quote
Console commands /banip, /banname, /banusgn.
Script with:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
owner = {114940}

addhook("say","s")
function s(id,message)
	for _,usgn in ipairs(owner) do
		if player(id,"usgn")==usgn then 
     if string.sub(message,1,9) == "!banname " then
          parse("banname "..string.sub(message,9,string.len(message))))
     elseif string.sub(message,1,9) == "!banusgn " then
          parse("banusgn "..(string.sub(message,10,string.len(message))))
     elseif string.sub(message,1,7) == "!banip " then
          parse("banip "..(string.sub(message,8,string.len(message))))
		end
	end
end
just change owner table to your usgn, go in cs2d and say:
!banip <id> (ban player by ip)
!banusgn <id> (ban player by usgn)
!banname <id> (ban player by name)
also you can do do,
!banname player
and it will work.
edited 1×, last 08.07.14 03:32:57 pm

old Re: how to ban someone only in my server

Crabby
User Off Offline

Quote
You got your help. But I got 1 question.

The title goes: "How to ban someone only in my server."

Is it possible to ban someone from other servers.. From ur server.

old Re: how to ban someone only in my server

Infinite Rain
Reviewer Off Offline

Quote
@user Rainoth:
I think you're missing the point here.

Title: "how to ban someone only in my server".
It sounds like he can only ban people in other servers but not in his own. Or if he bans someone in his server then players gets banned everywhere. That's what he wanted to point out.

old Re: how to ban someone only in my server

Infinite Rain
Reviewer Off Offline

Quote
user Rainoth has written
@user Infinite Rain: Don't play with words.

I do not play with them.
user Rainoth has written
It's obvious that he couldn't phrase what he needed properly. My first reply was more than enough (you can see it by how he replied after that). The rest is meant for user Crabby

Did I deny any of those facts?
user Infinite Rain has written
That's what he wanted to point out.

By "he" in my message I meant user Crabby, sorry if that wasn't clear enough.
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview