1 (edited by GregWar 2008-05-13 20:13:41)

Topic: [PATCH] Kick+Ban the clients by IP (useful!)

http://seezat.com/banned.jpg

Hi !
I noticied, on the race map, that banning peoples who disturb others or block them could be very useful. So i'm happy to give you this patch, which concern only the file src/engine/es_server.c and can be very useful:

Download ban.patch

To apply it, just type:

patch -p1 < ban.patch

In the teeworlds-0.4.2-src/ dir, then recompile the server

Here are the new commands that this patch permit:

ban (cid): ban the client cid, you can see al the cids with the status command
banlist: show the list of the ban
unban (banid): unban an ip, you can see the banid in the banlist

Have fun!

EDIT: You can download a windows server with ban:
http://rajhshanks.free.fr/teeworlds/tee … rv_ban.exe
Thanks Rajh!

EDIT: I'm waiting for feedback!

2

Re: [PATCH] Kick+Ban the clients by IP (useful!)

Hehe ... nice! That's brilliant! In combination with Rajh's kickvotethingy this would be awesome.

Antoine de Saint Exupéry: It seems that perfection is reached not when there is nothing left to add, but when there is nothing left to take away.
Besides -  I am the gfx guy!

3

Re: [PATCH] Kick+Ban the clients by IP (useful!)

the cid is unique for every client?

4

Re: [PATCH] Kick+Ban the clients by IP (useful!)

No, a CID is just a number associated to a player during a server session smile

5

Re: [PATCH] Kick+Ban the clients by IP (useful!)

Wow good job !

6

Re: [PATCH] Kick+Ban the clients by IP (useful!)

im too lazy to compile now...can u compile for linux86 ? ^^

i sell the life..

7

Re: [PATCH] Kick+Ban the clients by IP (useful!)

lol, take that:

Download teeworlds_srv

8

Re: [PATCH] Kick+Ban the clients by IP (useful!)

"take that!"

LOL

ill compile in linux in the day, along with instagib big_smile

9

Re: [PATCH] Kick+Ban the clients by IP (useful!)

i have to compile a windows version for me.. becuase nobody here wants to do it.. .. i compile teeworlds + homing mod + ban patch + ctfboard patch + Classmod-1.1 .. thats the ultimative mod.. iclude most usefull patches wink

Remember me? Questions? Just leave a message, I will respond within 72 hrs!

10 (edited by GregWar 2008-05-13 14:34:06)

Re: [PATCH] Kick+Ban the clients by IP (useful!)

Thanks to put my patches in you mod smile

Maybe you could do a link here to download your version

11

Re: [PATCH] Kick+Ban the clients by IP (useful!)

http://rajhshanks.free.fr/teeworlds/tee … rv_ban.exe(only ban)

12

Re: [PATCH] Kick+Ban the clients by IP (useful!)

homng mod?? what is thaatt?

13

Re: [PATCH] Kick+Ban the clients by IP (useful!)

Nice one,

i would add a name ban. To ban bad names fuck,nigger,aso.

Something like:

    if (str_find_nocase(server_clientname(client_id),"nigger"))
    {
        server_kick(client_id, "Please change your name");
    }

14

Re: [PATCH] Kick+Ban the clients by IP (useful!)

@GregWar i have to add you ban mod because its not include standart server... and so i add some pathes to one big mod..  a link .. of course.. why not?? ..^^

Remember me? Questions? Just leave a message, I will respond within 72 hrs!

15

Re: [PATCH] Kick+Ban the clients by IP (useful!)

@Dani > I do not understand what you are trying to ask me smile

16

Re: [PATCH] Kick+Ban the clients by IP (useful!)

hehe ok.. i will add your mod because the normal server hasnt a ban function.... and normal and ban is up by Rajh .. but all other mods are without that.. and so i will create one big mod.. iclude everything.. i will add a link here of course..

Remember me? Questions? Just leave a message, I will respond within 72 hrs!

17

Re: [PATCH] Kick+Ban the clients by IP (useful!)

Good luck cause some mod (usualy mine xD) can't be mixed with other cause there are no cvar to disable the mod

18

Re: [PATCH] Kick+Ban the clients by IP (useful!)

thx) i compile it myself soon smile

i sell the life..

19

Re: [PATCH] Kick+Ban the clients by IP (useful!)

hmm i dont understand how to put it in, i tried to rename the ban server client and run the hooming mod then.

But it didn't work, do someone know how to run hooming and ban client

TDM Rotation 24/7 - 81.4.101.88:8303   List all 3 Servers without typing the IP by searching for rota in-game at the Serverlist
CTF  Rotation 24/7 - 81.4.101.88:8304
DM    Rotation 24/7 - 81.4.101.88:8305     Rotation-Server Forum Thread

20 (edited by GSGDani 2008-05-14 18:14:32)

Re: [PATCH] Kick+Ban the clients by IP (useful!)

hehe.. 1. download teeworlds source code
2. download homing mod.. source code is include..
3. go to http://www.teeworlds.com/?page=docs& … Everything and download all programms (install)
4. copy the homing mod changed files to the normal teeworlds source folder
5 open server source code with Visual C/C++ Express  and put the ban patch in .. (and save)
6. use bam for compiling..
7.. your homing mod server with ban is ready..

too much for you?? then wait for my compiled server.. wink

Remember me? Questions? Just leave a message, I will respond within 72 hrs!

21

Re: [PATCH] Kick+Ban the clients by IP (useful!)

yeah
give me ur compiled server
i am installing c++ packages now to compile this:)

i sell the life..

22

Re: [PATCH] Kick+Ban the clients by IP (useful!)

Thanks, I'll integrate it into my admin mod if you don't mind.

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

23

Re: [PATCH] Kick+Ban the clients by IP (useful!)

nice... thank you !!!

sorry, bad english... neutral

24

Re: [PATCH] Kick+Ban the clients by IP (useful!)

Thx for this, really usefull. :>
Banned some annoying spammer today, was kind of funny...
"I'm glad there's some banning function"
"There isn't"[SPAM]
[SPAM]
[SPAM]
[SPAM]
[...]
He tried like 5 minutes to rejoin. :>

bam: WARNING:'src/game/server/gamemodes/mod.cpp' comes from the future

25

Re: [PATCH] Kick+Ban the clients by IP (useful!)

Very Good.
Thanks.