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

Ct banner v2.3


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands        Approver:   HamletEagle (36)
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-26-2010 , 02:32   Ct banner v2.3
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (ctbanner_23.sma - 3236 views - 10.5 KB)
File Type: txt ctbanner.txt (5.3 KB, 1688 views)
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 02-18-2012 at 10:32.
drekes is offline
Send a message via MSN to drekes
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-26-2010 , 02:50   Re: ct banner
Reply With Quote #2

Great idea. I like it.

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

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

__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-26-2010 , 02:51   Re: ct banner
Reply With Quote #3

tnx wrecked, i'll change it.

EDIT: changed.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 03-26-2010 at 02:54.
drekes is offline
Send a message via MSN to drekes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-26-2010 , 02:54   Re: ct banner
Reply With Quote #4

You should prevent players from joining CT team instead of let them join and then put them in TERRORIST team, could generate strange things.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-26-2010 , 02:56   Re: ct banner
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
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.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 03-26-2010 , 15:46   Re: ct banner
Reply With Quote #6

i dont get your signature

by the way nice plugin, i like it
__________________
Zombiezzz is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-26-2010 , 15:47   Re: ct banner
Reply With Quote #7

Quote:
Originally Posted by Zombiezzz View Post
i dont get your signature
10 is 2 in binary.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
AirShot
Veteran Member
Join Date: Sep 2009
Location: Belgium
Old 03-26-2010 , 18:06   Re: ct banner
Reply With Quote #8

what is 2 ?
__________________
AirShot is offline
fR4gn0tiX!
Senior Member
Join Date: Nov 2009
Location: Georgia, Tbilisi
Old 03-26-2010 , 18:07   Re: ct banner
Reply With Quote #9

Quote:
Originally Posted by AirShot View Post
what is 2 ?
A number maybe? But I'm not sure...
__________________
fR4gn0tiX! is offline
Send a message via Skype™ to fR4gn0tiX!
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-26-2010 , 18:07   Re: ct banner
Reply With Quote #10

Quote:
Originally Posted by AirShot View Post
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.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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 05:52.


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