AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   ban terrorist for retry (https://forums.alliedmods.net/showthread.php?t=174873)

kp3t3h 12-26-2011 19:43

ban terrorist for retry
 
i am looking for a plugin that will ban the terrorist for X amount of seconds due to retry

i need this for deathrun server.

pacheco 12-26-2011 20:01

Re: ban terrorist for retry
 
This is more efficient
http://forums.alliedmods.net/showthread.php?p=139759

Sylwester 12-27-2011 02:36

Re: ban terrorist for retry
 
kick/ban for retry is seriously annoying, it's much better to block spawn:
http://forums.alliedmods.net/showthread.php?p=555349

ConnorMcLeod 12-27-2011 02:45

Re: ban terrorist for retry
 
Quote:

Originally Posted by Sylwester (Post 1620306)
kick/ban for retry is seriously annoying, it's much better to block spawn:
http://forums.alliedmods.net/showthread.php?p=555349

Not if the mod you play allows only 1 T and that his retry triggers a restart :)

Sylwester 12-27-2011 03:42

Re: ban terrorist for retry
 
Well, in that case you can use this: http://forums.alliedmods.net/showthread.php?t=156236

kp3t3h 12-27-2011 07:34

Re: ban terrorist for retry
 
like i said, i am looking for plugin that will punish the terrorist for using retry in X seconds.
i dont need any other plugins i just want the punishment

btw, i already use the Replace Disconnected T but i want to punish the terrorist for using retry, if he doesn't like to be terrorist he can leave, and come back in a minute (miss the round)

Pop0N 12-29-2011 15:06

Re: ban terrorist for retry
 
PHP Code:

#include <amxmodx>
#include <cstrike>

new CT[33], Terror[33]

public 
plugin_init()
    
register_plugin("Deathrun Block Reconnect","0.3","ZeDoX")

public 
client_putinserver(id) {
    if(!
is_user_bot(id)) {
        if(
CT[id])        set_task(5.0"slay"id)
        else if(
Terror[id])    set_task(5.0"ban"id)
        
set_task(10.0"ShowMessage"id)
    }
}

public 
client_disconnect(id) {
    if(!
is_user_bot(id)) {
        
set_task(60.0"cleanID"id)
        if(
cs_get_user_team(id) == CS_TEAM_T)
            
Terror[id] = true
        
else if(cs_get_user_team(id) == CS_TEAM_CT)
            
CT[id] = true
    
}
}

public 
cleanID(id) {
    
Terror[id] = false
    CT
[id] = false
}
public 
ban(id) {
    new 
name[33]
    
get_user_name(idname32)
    
server_cmd("amx_banip ^"#%d^" 30 ^"reconnect from Terror^"", get_user_userid(id))
    
client_print(0print_chat"[ Deathrun Block Retry ] %s get ban: reconnect from Terrist"name)
}
public 
slay(id) {
    if(
is_user_alive(id)) {
        new 
name[33]
        
get_user_name(idname32)
        
user_kill(id)
        
client_print(0print_chat"[ Deathrun Block Retry ] %s get slay: reconnect from Counter Terrorist"name)
    }
}
public 
ShowMessage(idclient_print(idprint_chat"[ Deathrun Block Retry ] if you reconnect from the server you get auto ban or slay") && client_print(idprint_chat"[ Deathrun Block Retry ] if you reconnect from the server you get auto ban or slay"



All times are GMT -4. The time now is 20:59.

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