Raised This Month: $ Target: $400
 0% 

ban terrorist for retry


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kp3t3h
Senior Member
Join Date: Feb 2011
Old 12-26-2011 , 19:43   ban terrorist for retry
Reply With Quote #1

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.
kp3t3h is offline
pacheco
Senior Member
Join Date: Jul 2011
Old 12-26-2011 , 20:01   Re: ban terrorist for retry
Reply With Quote #2

This is more efficient
http://forums.alliedmods.net/showthread.php?p=139759
__________________



pacheco is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 12-27-2011 , 02:36   Re: ban terrorist for retry
Reply With Quote #3

kick/ban for retry is seriously annoying, it's much better to block spawn:
http://forums.alliedmods.net/showthread.php?p=555349
__________________
Impossible is Nothing
Sylwester is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-27-2011 , 02:45   Re: ban terrorist for retry
Reply With Quote #4

Quote:
Originally Posted by Sylwester View Post
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
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 12-27-2011 , 03:42   Re: ban terrorist for retry
Reply With Quote #5

Well, in that case you can use this: http://forums.alliedmods.net/showthread.php?t=156236
__________________
Impossible is Nothing
Sylwester is offline
kp3t3h
Senior Member
Join Date: Feb 2011
Old 12-27-2011 , 07:34   Re: ban terrorist for retry
Reply With Quote #6

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)
kp3t3h is offline
Pop0N
Member
Join Date: Apr 2011
Old 12-29-2011 , 15:06   Re: ban terrorist for retry
Reply With Quote #7

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"

Last edited by Pop0N; 12-29-2011 at 15:07.
Pop0N is offline
Reply


Thread Tools
Display Modes

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 20:59.


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