Raised This Month: $32 Target: $400
 8% 

Solved Ban if lose x rounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
4ever16
Veteran Member
Join Date: Apr 2015
Old 12-03-2016 , 20:36   Ban if lose x rounds
Reply With Quote #1

Plugin which bans player if they lose x amount of rounds does it exist?
Simple to make? Someone who can make it?

Last edited by 4ever16; 12-29-2019 at 12:39.
4ever16 is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 12-14-2016 , 14:45   Re: [Searching] Ban if lose x rounds
Reply With Quote #2

Bump #1
4ever16 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 12-14-2016 , 18:01   Re: [Searching] Ban if lose x rounds
Reply With Quote #3

What are u trying to do? And why ban the player? Wheres the point on this?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 12-14-2016 at 18:01.
EFFx is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 12-15-2016 , 12:18   Re: [Searching] Ban if lose x rounds
Reply With Quote #4

Well tournament.
Ban like 5 minutes not a perm ban.

Can you make it?

Last edited by 4ever16; 12-15-2016 at 12:20.
4ever16 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 12-15-2016 , 13:40   Re: [Searching] Ban if lose x rounds
Reply With Quote #5

Tournament? Explain me what this tournament does. With this explainament I can understand what can i make.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 12-15-2016 , 18:01   Re: [Searching] Ban if lose x rounds
Reply With Quote #6

Well 1x1 loser gets banned for 5 minutes new player joins etc.
Winner gets 1 point.
Player with most points wins the tournament.
4ever16 is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 12-28-2019 , 23:58   Re: [Searching] Ban if lose x rounds
Reply With Quote #7

Bump!
4ever16 is offline
AmXDusT
Member
Join Date: Feb 2019
Location: Italy / Albania
Old 12-29-2019 , 03:14   Re: [Searching] Ban if lose x rounds
Reply With Quote #8

This will ban the whole team ( since it's a 1v1, only the player on the losing team thus ). should work fine
PHP Code:
#include < amxmodx >

#if AMXX_VERSION_NUM < 183
#define client_disconnected client_disconnect
#endif

new pRounds;
new 
pPunish;

enum
{
    
TEAM_T  1,
    
TEAM_CT 2
}

new 
iPunish];

public 
plugin_init()
{
    
register_plugin"Ban if lose""1.0""DusT" );
    
    
pRounds register_cvar"tt_punish_after""3" );                          // rounds
    
pPunish register_cvar"tt_punish_type""amx_ban [user] 5 You Lost" );   // use [user] to identify the player

    
register_messageget_user_msgid"TextMsg" ), "MsgTextMsg" );
}

public 
MsgTextMsg( const MsgId, const MsgDest, const MsgEntity 

    static const 
TerroristMsg[] = "#Terrorists_Win"
    static const 
CTMsg       [] = "#CTs_Win"

    static 
Messagesizeof TerroristMsg ]; 
    
get_msg_arg_string2MessagecharsmaxMessage ) ); 

    if( 
equalMessageTerroristMsg ) ) 
    { 
        
iPunishTEAM_CT ]++; 
        
CheckPunishTEAM_CT );
    } 
    else if( 
equalMessageCTMsg ) ) 
    { 
        
iPunishTEAM_T ]++; 
        
CheckPunishTEAM_T );
    } 
}
public 
CheckPunishteam )
{
    static const 
szTeams[][] = { """TERRORIST""CT""" };
    if( 
iPunishteam ] >= get_pcvar_numpRounds ) )
    {
        new 
players32 ], num;
        
get_playersplayersnum"e"szTeamsteam ] );
        new 
str128 ], userid10 ];
        
get_pcvar_stringpPunishstrcharsmaxstr ) );
        for( new 
inumi++ )
        {
            
//replace_string( str, charsmax( str ), "[user]", fmt( "#%d", get_user_userid( players[ i ] ) ) );
            
formatexuseridcharsmaxuserid ), "#%d"get_user_useridplayers] ) );
            
replace_allstrcharsmaxstr ), "[user]"userid );
            
server_cmdstr );
        }
        
iPunish] = 0;
        
iPunish] = 0;
    }
}
public 
client_disconnectedid )
{
    if( 
TEAM_T <= get_user_teamid ) <= TEAM_CT )
    {
        
iPunish] = 0;
        
iPunish] = 0;
    }

AmXDusT is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 12-29-2019 , 09:24   Re: [Searching] Ban if lose x rounds
Reply With Quote #9

Banning is way over don't you think?. how about just disallowing to join teams..
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 12-29-2019 at 09:25.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
4ever16
Veteran Member
Join Date: Apr 2015
Old 12-29-2019 , 11:17   Re: [Searching] Ban if lose x rounds
Reply With Quote #10

Thanks! But this is permanent ban right?

I would need a ban for like 5 hours so not a permanent ban.

Last edited by 4ever16; 12-29-2019 at 11:19.
4ever16 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 04:26.


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