1

Topic: [QUESTION] How to protect my server from being used as 1on1???

I'm working on a private antiscum mod for my 24/7 server. I already did antispam, antibot and antihack. But one thing left: protect my server from being used as 1on1. Becasue sometimes I go to famous public servers and get kicked because sometwo want to play 1on1 on them. That's so bad. So how to protect server from it without disabling kickvotes (for kicking bots and accurate spammers that bypass antispam).

2 (edited by erd 2009-10-24 23:27:20)

Re: [QUESTION] How to protect my server from being used as 1on1???

Don't tested... but maybe you could insert in hook.cpp before line 260

str_format(chatmsg, sizeof(chatmsg), "Vote called to kick '%s'", server_clientname(kick_id));

this:

int player_count = 0;
for(int i = 0; i<MAX_CLIENTS; i++)
{
    if(game.players[i])
    {
        player_count++;
    }
}
if(player_count < 4)
{
    game.send_chat_target(client_id, "There have to be at least four players on this server to call kickvotes");
    return;
}

3

Re: [QUESTION] How to protect my server from being used as 1on1???

not a good idea... one of players can be a bot...

4

Re: [QUESTION] How to protect my server from being used as 1on1???

Can be bot ? I don't understand you.

Not Luck, Just Magic.

5

Re: [QUESTION] How to protect my server from being used as 1on1???

He says if a bot is on the server, so players can't kick him hmm

|ZPote| buffer[]'s posterous

6

Re: [QUESTION] How to protect my server from being used as 1on1???

The problem is that vote passes with 50%+1 votes. So, if more than half of player in the server agree with the vote, the vote will pass. There is no way to bypass that.
Example:
CLAN1 player1
CLAN1 player2
CLAN1 player3
CLAN1 player4
CLAN2 player1
CLAN2 player2
With votekick, CLAN1 could easily kick from the server all CLAN2's players.
The same system is applied with less player, for example 3. If 2 agree with the votes, you will be kicked. There is no way, and there won't be, to win a vote if you are in the minorance.
So, I think you should solve this problems with other ways:
- mod the server that force players to spect if they are less than 4
- system that detect if there are many players of the same clan (check commons strings into nickname), count them, and force them to spect until there is the same number of players not of this clan.

Support Staff - ESL.eu Teeworlds Admin

7

Re: [QUESTION] How to protect my server from being used as 1on1???

- system that detect if there are many players of the same clan (check commons strings into nickname), count them, and force them to spect until there is the same number of players not of this clan.

That's stupid, so if you wanna play with your clan, you can't.
And 24/7 server could be use for clan servers.

|ZPote| buffer[]'s posterous

8

Re: [QUESTION] How to protect my server from being used as 1on1???

I have a good idea:
Make a variables, int var = 0; If there is 2 tees and the third guy come and get kicked. var added  by 1 , when var is equal to 2 or 3, kick those 1on1 players, reset var to 0.

Hope it help smile

9

Re: [QUESTION] How to protect my server from being used as 1on1???

Maybe make a guilty factor... Like player can be only kicked after 10 kills, 10 chat messager or 30 seconds of playing?

10

Re: [QUESTION] How to protect my server from being used as 1on1???

but then u cant kick afk'ler

11

Re: [QUESTION] How to protect my server from being used as 1on1???

afks kicked automatically on my server

12

Re: [QUESTION] How to protect my server from being used as 1on1???

lamefun wrote:

player can be only kicked after 10 kills,

That is not good.There is some fake-team-member(Who support other team and don't shoot!) or stupid tee that don't killing other?? sad

lamefun wrote:

  10 chat messager

Hmm... bastard will not chat! sad

lamefun wrote:

  30 seconds of playing

1.No effect to 1on1,they kick the third guy after 30 sec... sad
2.Bastard will get into server 29 second and go away and come back for 29 sec............... sad

You should use some way to measure no bastard get into server and have anti-1on1 effect.
Maybe use multi-ways:

If( A == true && B == true && C == true){
...
...
...
}

13

Re: [QUESTION] How to protect my server from being used as 1on1???

I don't think there is a solution to the protecting your sever from being a 1on1 only sever... It's been talked about in a topic I've made too. > http://www.teeworlds.com/forum/viewtopic.php?id=4235 <
Sorry man, I don't think you can make an anti-takeover block any time soon. sad

Give others the respect you wish to be respected with. In the mean time, enjoy the website!

14

Re: [QUESTION] How to protect my server from being used as 1on1???

if you want to take care about too many things the way to do it will get smaller and smaller.
if you want to be protected against kickvotes you can just disallow kickvotes against server-admins, but a way to disallow it to do a 1on1 seems rly to be impossible. maybe you should make a reason-kickcall, like:
Whats your reason?
A: Noob
B: Want to make a 1vs1
C: Afk
... wink

15

Re: [QUESTION] How to protect my server from being used as 1on1???

Can't you just manipulate the votes, so you need more than 50% of the players to pass it?!

16

Re: [QUESTION] How to protect my server from being used as 1on1???

I have another idea:
If a tee get into server and get kicked(kick vote pass.) in 10 or 15 seconds.The tee who called vote will get kicked.That tee will not get kicked.

17 (edited by Bee 2009-10-26 02:22:40)

Re: [QUESTION] How to protect my server from being used as 1on1???

gameover wrote:

I have another idea:
If a tee get into server and get kicked(kick vote pass.) in 10 or 15 seconds.The tee who called vote will get kicked.That tee will not get kicked.

It will work at first, but then they will learn to wait 15 seconds to kick them...

Zeratul wrote:

if you want to take care about too many things the way to do it will get smaller and smaller.
if you want to be protected against kickvotes you can just disallow kickvotes against server-admins, but a way to disallow it to do a 1on1 seems rly to be impossible. maybe you should make a reason-kickcall, like:
Whats your reason?
A: Noob
B: Want to make a 1vs1
C: Afk
... wink

A way to get over this is... lie... and click noob every time. o_o Won't work.

They only way to stop this is make it were if there are only 2 people playing, then they can't kick people at all. But then that creates other problems...

Give others the respect you wish to be respected with. In the mean time, enjoy the website!

18 (edited by gameover 2009-10-26 07:13:44)

Re: [QUESTION] How to protect my server from being used as 1on1???

|X-treme|Bee wrote:

It will work at first, but then they will learn to wait 15 seconds to kick them...

That is 24/7 server! Just kick him/her forever so there is no second time smile

19 (edited by Bee 2009-10-26 16:30:52)

Re: [QUESTION] How to protect my server from being used as 1on1???

gameover wrote:
|X-treme|Bee wrote:

It will work at first, but then they will learn to wait 15 seconds to kick them...

That is 24/7 server! Just kick him/her forever so there is no second time smile

That is an interesting idea...But that could make other problems...

Lets say "Teewee" starts harassing "Teepee", teepee trys to get away from this noob teewee, and joins your sever, teewee fallows, teepee automatically tries to kick teewee the second he joins and teepee is no longer... Or a noob joins the sever and starts fireing off binds and starts being a nuisance. So someone tries to kick him, and he gets kicked.

So the way I see it is ether: No 1on1=Noob central or No noobs=1on1 wars. :\

The only real way to fixing this is for the sever itself to determine if they are kicking someone for no apparent reason, or if there is a reason, like they are being a noob. So, anyone up to the challenge of making a noob detector?
For anyone that does want to make one, you first need to know what do noobs do that make you want to kick them...

For me it's:
(1) Them being an asshole. (Them saying mean things, them hooking team members and throwing them off the edge, or them killing the teammates by shooting them.(Playing good isn't one of them.))
(2)Spamming a lot.
(3)Playing poorly. (But remember we use to all play like noobs, so be graceful.)
(4)Being the king of A.F.K./Them not playing. (but still moving)
(5)Becoming the enemy. (Getting in your way, hooking team members moving them around so they can't concentrate, blocking your shoots, telling the other team things about your team that help them.)

Give others the respect you wish to be respected with. In the mean time, enjoy the website!