AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Ct banner v2.3 (https://forums.alliedmods.net/showthread.php?t=122365)

drekes 03-26-2010 02:32

Ct banner v2.3
 
26 Attachment(s)
Code:


 /* Ct banner by Drekes.       
  *
  * This plugin is made for Jailbreak servers, but can be used on every server but i don't see the use in that.
  * The point is: when a player is ct on Jailbreak, and he mass freekills or something, you can ban him from ct team.
  * So he can't be ct untell you unban him from ct.
  *
  * Commands:        - amx_addctban                <player>        "bans him from ct team"
  *                                  - amx_removectban        <player>        "Unbans him from the ct team"
  *                                  - amx_ctbanmenu                                        "Shows the Ctban Menu"
  *
  * Cvars:                - ctban_kill 1                                Kill a player when he gets banned
  *                                - ctban_connect_msg 1                        Show message when player connects
  *               
  * Credits:
  *                                Drekes
  *                        Fysiks
  *                        Wrecked_
  *                            Bugsy
  *                                Crazyeffect
  *
  * Changelog:
  *                        v1.0:        - Initial Release
  *                                v1.1:        - Minor fix (tnx wrecked)
  *                                v1.2:        - Make banned ct's autojoin T (thanks VEN for auto join on connect plugin)
  *                                v1.3:        - Multilangual
  *                                v1.4:        - Added banmenu
  *                                v1.5:        - Fixed Admin only bug
  *                                v1.6:        - Added a ban/unban menu, added to amxmodmenu
  *                                v1.7:        - Added Kill cvar, Reorganized code to make more readable
  *                                v2.0:        - Completely Rewrote plugin.
  *                                v2.1:        - Improved menu functionality.
  *                                v2.2:        - Rewritten menu (Only 1 menu is used now.)
  *                                                  - Renamed console commands.
  *                                                  - Added connection message cvar.
  *                                                - Added reason & playername in .ini (Still works with old .ini files)
  *                                v2.2a:        - Minor bug fix
  *                                v2.2b:        - Terrorist players don't get killed when ct-banned.
  *                                v2.3:        - Added message when using amx_ctbanmenu with only yourself in the server.
  *                                                - Fixed ban list not saving.
  *                                                - Fixed auto-select option working on ct-banned players.
  */

Completed translations:
Code:

en: Drekes
nl: Drekes, crazyeffect
bp: Pacheco
heb: NeedYourHelp
de: Curryking


wrecked_ 03-26-2010 02:50

Re: ct banner
 
Great idea. I like it.

PHP Code:

    switch(user_team[0])
    {
        case 
'C':  
        {
            
cs_set_user_team(idCS_TEAM_T)
        }
    } 

:arrow:
PHP Code:

if( user_team[0] == 'C' )
{
    
cs_set_user_teamidCS_TEAM_T )



drekes 03-26-2010 02:51

Re: ct banner
 
tnx wrecked, i'll change it.

EDIT: changed.

ConnorMcLeod 03-26-2010 02:54

Re: ct banner
 
You should prevent players from joining CT team instead of let them join and then put them in TERRORIST team, could generate strange things.

drekes 03-26-2010 02:56

Re: ct banner
 
Quote:

Originally Posted by ConnorMcLeod (Post 1129092)
You should prevent players from joining CT team instead of let them join and then put them in TERRORIST team, could generate strange things.

I'll check if i can do that. It's been running on my server now for a while and did'nt get any errors or something. So i though it was good.

Zombiezzz 03-26-2010 15:46

Re: ct banner
 
i dont get your signature

by the way nice plugin, i like it :)

wrecked_ 03-26-2010 15:47

Re: ct banner
 
Quote:

Originally Posted by Zombiezzz (Post 1129587)
i dont get your signature

10 is 2 in binary.

AirShot 03-26-2010 18:06

Re: ct banner
 
what is 2 ?

fR4gn0tiX! 03-26-2010 18:07

Re: ct banner
 
Quote:

Originally Posted by AirShot (Post 1129716)
what is 2 ?

A number maybe? But I'm not sure...

wrecked_ 03-26-2010 18:07

Re: ct banner
 
Quote:

Originally Posted by AirShot (Post 1129716)
what is 2 ?

Non-existent in binary. Binary is only 1's and 0's.

Google it if you have any further questions. This isn't the place.


All times are GMT -4. The time now is 23:08.

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