Raised This Month: $51 Target: $400
 12% 

[REQ] anti reconnect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yaseensalem1
Member
Join Date: Jun 2016
Location: palestine
Old 07-28-2016 , 15:42   [REQ] anti reconnect
Reply With Quote #1

Hey guys
I need a simple anti reconnect to deathrun mod


Plugin description

If any player in the terror and out of the server and came back on again
Plugin prevents this from happening so that it prevents the player from entering the server for 20 seconds

Last edited by yaseensalem1; 07-28-2016 at 15:43.
yaseensalem1 is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 07-28-2016 , 16:42   Re: [REQ] anti reconnect
Reply With Quote #2

Search Block Reconnect Respawn
redivcram is offline
dr hicham
Senior Member
Join Date: Sep 2015
Location: Morocco
Old 07-28-2016 , 18:41   Re: [REQ] anti reconnect
Reply With Quote #3

Try This :
PHP Code:
/* AMX Mod X script. 

* No reconnect
* (c) Copyright 2002, SYZo
* This file is provided as is (no warranties). 
*
* amx_minreconnecttime 20 (in seconds)
*
*  *******************************************************************************
*   
*    Ported By KingPin( [email protected] ). I take no responsibility 
*    for this file in any way. Use at your own risk. No warranties of any kind. 
*
*  *******************************************************************************
*   Updated Feb 14 2006

*/ 

#include <amxmodx> 
#include <engine> 
#define MAX_PLAYERS 32

#define PLUGIN "No reconnect"
#define VERSION "2.11"
#define AUTHOR "SYZo" 

new pip[MAX_PLAYERS][22]
new 
Float:minreconnecttime

public delayed_kick(user[]) {
    
server_cmd("kick #%d",user[0])
}

public 
clean_blackip(ind[]) {
    
pip[ind[0]][0] = 0
}

public 
client_connect(id) {
    if (!
is_user_bot(id)) {
    
minreconnecttime get_cvar_float("amx_minreconnecttime")
    new 
userip[21+1]
    new 
uname[33+1]
    
get_user_ip(iduserip210)
    
get_user_name(iduname33)
    for(new 
1<= MAX_PLAYERSi++) {
        if (
equal(userippip[i], 21)) {
        new 
userid[1]
        
userid[0] = get_user_userid(id)
        new 
authid[32]
        
get_user_authid(id,authid,32)
        
log_amx("^"%s<%s><%d><%s><>^""unameuseripget_user_userid(id), authid)
        if (!(
get_user_flags(id)&ADMIN_IMMUNITY)) {
            new 
text[128]
            
format(text128"Player %s kicked after usage reconnect command"uname)
            
set_hudmessage(255000.050.7005.06.06.00.153)
            
show_hudmessage(0,"%s",text)
            
client_cmd(id,"echo [AMXX] You used command RECONNECT within %f, please reconnect after %f sec"minreconnecttime)
            
set_task(1.0,"delayed_kick",0,userid,1)
        }
        return 
PLUGIN_CONTINUE
        
}
    }
    }
    return 
PLUGIN_CONTINUE
}

public 
client_disconnect(id) {
    if (!
is_user_bot(id)) {
    for(new 
1<= MAX_PLAYERSi++) {
        if(
pip[i][0] == 0) {
        new 
userip[21+1]
        
get_user_ip(iduserip210)
        
copy(pip[i], 21userip)
        new 
userid[1]
        
userid[0] = i
        set_task
(minreconnecttime"clean_blackip"0userid[0], 1)
        return 
PLUGIN_CONTINUE
        
}
    }
    }
    return 
PLUGIN_CONTINUE
}

public 
plugin_init() { 
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_cvar("amx_minreconnecttime","20")
    return 
PLUGIN_CONTINUE 

__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
dr hicham is offline
yaseensalem1
Member
Join Date: Jun 2016
Location: palestine
Old 07-29-2016 , 07:16   Re: [REQ] anti reconnect
Reply With Quote #4

Quote:
Originally Posted by redivcram View Post
Search Block Reconnect Respawn
bro i have plugin respawn in the server after 30 sec
so when the player join again will come back to life after 30 sec

now i want a plugin to prevent the entry to server for 20 seconds


-*-*-*---*-*-*-*---*-*-*-*--*

Quote:
Originally Posted by dr hicham View Post
Try This :
PHP Code:
/* AMX Mod X script. 

* No reconnect
* (c) Copyright 2002, SYZo
* This file is provided as is (no warranties). 
*
* amx_minreconnecttime 20 (in seconds)
*
*  *******************************************************************************
*   
*    Ported By KingPin( [email protected] ). I take no responsibility 
*    for this file in any way. Use at your own risk. No warranties of any kind. 
*
*  *******************************************************************************
*   Updated Feb 14 2006

*/ 

#include <amxmodx> 
#include <engine> 
#define MAX_PLAYERS 32

#define PLUGIN "No reconnect"
#define VERSION "2.11"
#define AUTHOR "SYZo" 

new pip[MAX_PLAYERS][22]
new 
Float:minreconnecttime

public delayed_kick(user[]) {
    
server_cmd("kick #%d",user[0])
}

public 
clean_blackip(ind[]) {
    
pip[ind[0]][0] = 0
}

public 
client_connect(id) {
    if (!
is_user_bot(id)) {
    
minreconnecttime get_cvar_float("amx_minreconnecttime")
    new 
userip[21+1]
    new 
uname[33+1]
    
get_user_ip(iduserip210)
    
get_user_name(iduname33)
    for(new 
1<= MAX_PLAYERSi++) {
        if (
equal(userippip[i], 21)) {
        new 
userid[1]
        
userid[0] = get_user_userid(id)
        new 
authid[32]
        
get_user_authid(id,authid,32)
        
log_amx("^"%s<%s><%d><%s><>^""unameuseripget_user_userid(id), authid)
        if (!(
get_user_flags(id)&ADMIN_IMMUNITY)) {
            new 
text[128]
            
format(text128"Player %s kicked after usage reconnect command"uname)
            
set_hudmessage(255000.050.7005.06.06.00.153)
            
show_hudmessage(0,"%s",text)
            
client_cmd(id,"echo [AMXX] You used command RECONNECT within %f, please reconnect after %f sec"minreconnecttime)
            
set_task(1.0,"delayed_kick",0,userid,1)
        }
        return 
PLUGIN_CONTINUE
        
}
    }
    }
    return 
PLUGIN_CONTINUE
}

public 
client_disconnect(id) {
    if (!
is_user_bot(id)) {
    for(new 
1<= MAX_PLAYERSi++) {
        if(
pip[i][0] == 0) {
        new 
userip[21+1]
        
get_user_ip(iduserip210)
        
copy(pip[i], 21userip)
        new 
userid[1]
        
userid[0] = i
        set_task
(minreconnecttime"clean_blackip"0userid[0], 1)
        return 
PLUGIN_CONTINUE
        
}
    }
    }
    return 
PLUGIN_CONTINUE
}

public 
plugin_init() { 
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_cvar("amx_minreconnecttime","20")
    return 
PLUGIN_CONTINUE 


not work my friend

i want another one please
yaseensalem1 is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 07-30-2016 , 14:47   Re: [REQ] anti reconnect
Reply With Quote #5

I make a plugin, when TERO is retry/disconnect/quit he will be banned for 5 minutes.

Cvar: td_bantime "5" ( 5 - > minutes )
Attached Files
File Type: sma Get Plugin or Get Source (RetryTeroBan.sma - 717 views - 669 Bytes)

Last edited by Craxor; 07-30-2016 at 14:48.
Craxor is offline
Send a message via ICQ to Craxor
yaseensalem1
Member
Join Date: Jun 2016
Location: palestine
Old 07-31-2016 , 13:47   Re: [REQ] anti reconnect
Reply With Quote #6

thanks man
yaseensalem1 is offline
Houssam Benmouna
Senior Member
Join Date: Apr 2016
Old 06-03-2017 , 22:03   Re: [REQ] anti reconnect
Reply With Quote #7

niuce

Last edited by Houssam Benmouna; 06-03-2017 at 22:07.
Houssam Benmouna is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode