Raised This Month: $ Target: $400
 0% 

Jailbreak rebel plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Eimyzas
Junior Member
Join Date: Oct 2009
Old 04-06-2010 , 12:02   Jailbreak rebel plugin
Reply With Quote #1

Hey guys i need a plugin that kilsl a ct when he just kill T for nothing .
I saw this plugin in a server if a ct does 3kills he get killed instantly.

Please help
Eimyzas is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 04-06-2010 , 16:33   Re: Jailbreak rebel plugin
Reply With Quote #2

Not tested.
Code:
#include <amxmodx> #include <hamsandwich> #include <cstrike> #include <fun> #define IsPlayer(%1)    (1<=%1<=maxplayers) new bool:b_Rebel[33] // rebel or not new iKills[33] // non-rebels killed new varKills new maxplayers public plugin_init() {     register_plugin( "Rebel System", "1.0", "Wrecked" ) // :avast:         register_event( "DeathMsg", "EVENT_DeathMsg", "a" )         varKills = register_cvar( "rebel_kills", "3" )         RegisterHam( Ham_Spawn, "player", "HAM_Spawn_Post", 1 )     RegisterHam( Ham_TakeDamage, "player", "HAM_TakeDamage_Post", 1 )         maxplayers = get_maxplayers() } public EVENT_DeathMsg() {     new iKiller = read_data( 1 )     new iVictim = read_data( 2 )         if( !IsPlayer( iKiller ) || cs_get_user_team( iKiller ) != CS_TEAM_CT     || b_Rebel[iVictim] )     {         return;     }         iKills[iKiller]++         if( iKills[iKiller] >= get_pcvar_num( varKills ) )     {         user_kill( iKiller )                 new name[32]         get_user_name( iKiller, name, 31 )                 client_print( 0, print_chat, "%s was killed for killing too many non-rebels!", name )     } } public HAM_TakeDamage( iVictim, inflictor, iAttacker, float:dmg, dmgbits ) {     if( IsPlayer( iAttacker ) && !b_Rebel[iAttacker] && cs_get_user_team( iAttacker ) == CS_TEAM_T )     {         b_Rebel[iAttacker] = true                 new name[32]         get_user_name( iAttacker, name, 31 )                 client_print( 0, print_chat, "%s is now a rebel!", name )                 set_user_rendering( iAttacker, kRenderFxGlowShell, 255, 0, 0, kRenderNormal, 25 )     } } public HAM_Spawn_Post( id ) {     b_Rebel[id] = false     iKills[id] = 0         if( is_user_alive( id ) )     {         set_user_rendering( id, kRenderFxGlowShell, 0, 0, 0, kRenderNormal, 25 )     } }
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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 21:28.


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