Anti-Reconnect Kicker

A Config Script for Counter-Strike: Source

SEX! Ok, we got your attention. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending Woomaps points.
  • Post: Give Woomaps your thoughts on this Script.
  • Vote: Help Woomaps win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Sound fun?

Sign up

Already a Bananite? Login

39 lines | 1 kb | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Kicks someone for reconnecting to quickly

block load
{
  es_xsetinfo recon_exists 0
  es_exists recon_exists keygroup reconnecters
  if (server_var(recon_exists) equalto 1) then es_xkeygroupdelete reconnecters
  es_xkeygroupcreate reconnecters
}

event es_map_start
}
  es_xkeygroupdelete reconnecters
  es_xkeygroupcreate reconnecters
}

event player_activate
{
  if (event_var(es_steamid) notequalto "BOT") do
  {
    es_exists recon_exists key reconnecters event_var(es_steamid)
    if (server_var(recon_exists) equalto 1) then kickid event_var(userid) Can not reconnect for 1 minute.
    es_msg server_var(es_username) has been kicked for reconnecting to quickly!
  }
}

event player_disconnect
{
  if (event_var(es_steamid) notequalto "BOT") do
  {
    es_exists recon_exists key reconnecters event_var(es_steamid)
    if (server_var(recon_exists) equalto 0) do
    {
      es_keycreate reconnecters event_var(es_steamid)
      es_keysetvalue reconnecters event_var(es_steamid) RC 1
      es_delayed 60 es_keydelete reconnecters event_var(es_steamid)
    }
  }
}

Posts

  • 9y
    *--(TNT() avatar
    *--(TNT() Offline
    Member Joined 9y
    796 points Ranked 5776th
    Very good code, but you might want to make some usage instructions saying that you need event scripts installed, etc.

    also comment out the "Kicks someone for reconnecting to quickly" part.

    9/10

    .22LR < .50 BMG avatar
    Mantra
    .22LR < .50 BMG
  • 9y
    Woomaps avatar
    Woomaps Offline
    Member Joined 11y
    1,355 points Ranked 3475th
    Sure. Change this line:
    es_delayed 60 es_keydelete reconnecters event_var(es_steamid)

    And alter the time (Change the 60. its in seconds)
    Woomaper!
  • 9y
    Treet avatar
    Treet Offline
    Member Joined 10y
    775 points Ranked 5908th
    Is there anyway to change how long until they can come back?
    It's time for another; so I ca avatar
    Mantra
    It's time for another; so I ca
  • 10y
    Woomaps avatar
    Woomaps Offline
    Member Joined 11y
    1,355 points Ranked 3475th
    Www.mattie.info/cs

    Download Eventscripts and install, then make a folder called arck, and copy this code to a text file called es_arck.txt. Then type es_load arck in your server console, or through RCON
    Woomaper!
  • 10y
    Porcupine162 avatar
    Member Joined 10y
    790 points Ranked 5807th
    ...I won't download this. Not because it's bad, it's because I don't need it. Do I have to make an event-script folder for this? Please explain
  • 10y
    sniper313 avatar
    sniper313 Offline
    Member Joined 12y
    Nice code
    Masta Killa avatar
    Mantra
    Masta Killa

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Key Authors
venjax
Unknown

Submitter

Woomaps avatar
Woomaps Offline
Member Joined 11y
1,355 points Ranked 3475th

Woomaps
Redistributor
Are you the owner? Request Ownership
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Stats

Posts
6
Views
5,758
Date Added
11y
bcp.crwdcntrl.net tracking pixel