Raised This Month: $ Target: $400
 0% 

Jailbreak Box can kill each other CT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 10-15-2014 , 13:28   Jailbreak Box can kill each other CT
Reply With Quote #1

I have a problem, I run the Box fast Enabled and Disable
So at the same time you can quickly kill the CT, and I just run enable it does not kill ..

Code:
/* Plugin generated by AMXX-Studio */

#include < amxmodx >
#include < cstrike >
#include < fakemeta_util >
#include < hamsandwich >
#include < ColorChat >

#define PLUGIN "Jailbreak Box Menu"
#define VERSION "1.1"
#define AUTHOR "CheezPuff aka Fuck For Fun ;]"

public plugin_init() 
{
    register_plugin(PLUGIN, VERSION, AUTHOR)

    register_clcmd( "say /box", "cmdBox" );
    
    register_logevent( "CmdRoundStart", 2, "1=Round_Start" );
    RegisterHam( Ham_TakeDamage, "player", "HamTakeDamage" );
}

public CmdRoundStart()
{
    server_cmd( "mp_friendlyfire 0" );
}

public cmdBox( client )
{              
         if ( !is_user_alive( client ) || cs_get_user_team( client ) != CS_TEAM_CT )
         {
                ColorChat( client, GREEN, "[Jailbreak] ^1You must to be^x03 Alive Guards^x01 to do this^x04 command.");
                return 1;
         }
    
    new szMenu[ 50 ], iMenu;
    formatex( szMenu, charsmax( szMenu ), "\r[Jailbreak] \wBox Menu \d/*Built By \yCheezPuff\d");

    iMenu = menu_create( szMenu, "sub_box" );
    
    menu_additem( iMenu, "Box \yActive");
    menu_additem( iMenu, "Box \yDeactive^n");
    menu_additem( iMenu, "Reset Health : \r[ \wTerrorist \r]" );

    menu_display( client, iMenu, 0 );
    return PLUGIN_HANDLED;
}

public sub_box(client, iMenu, item)
{      
    if( item == MENU_EXIT )
        return 1;
       
    switch( item )
    {
        case 0:
        {
            server_cmd( "mp_friendlyfire 1" );
            set_hudmessage(random_num(1,250), random_num(1,255), random_num(1,256), -1.0, -1.0, 0, 6.0, 12.0);
            show_hudmessage(0, "Gurad: %s - Active Box", szName);
            ColorChat( 0, GREEN, "[Jailbreak]^1 Guard:^3 %s ^1- Active ^4Box", szName( client ) );
        }
        
        case 1:
        {
            server_cmd( "mp_friendlyfire 0" );
            set_hudmessage(random_num(1,255), random_num(1,255), random_num(1,255), -1.0, -1.0, 0, 6.0, 12.0);
            show_hudmessage(0, "Gurad: %s - Disactived JailBreak Box",szName);
            ColorChat( 0, GREEN, "[Jailbreak]^1 Guard:^3 %s ^1- Disactived ^4Box", szName( client ) );
        }
        
        case 2:
        {
                           new players[ 32 ], pnum;
                           get_players( players, pnum, "aceh", "TERRORIST" );
                       
                           for(new i = 1; i <= pnum; i++)
                           fm_set_user_health( i, 100 );
 
                           ColorChat( 0, GREEN, "[Jailbreak]^3 %s^1 has reseted HP To ^4Prisoner's^1 Team!", szName( client ));
                        
                           cmdBox( client );
                           return 1;
                }              
        }
 
        return 1;
}

public HamTakeDamage( victim, inflictor, attacker, Float:damage, damagebits )
{
        if ( !is_user_connected( attacker ) || !is_user_alive( attacker ) )
                return HAM_IGNORED;
       
        return ( cs_get_user_team( attacker ) == CS_TEAM_CT && cs_get_user_team( victim ) == cs_get_user_team( attacker ) ?  HAM_SUPERCEDE : HAM_IGNORED);

stock GetUserName( client )
{
    static szName[ 32 ];
    
    get_user_name( client, szName, charsmax( szName ) );
    
    return szName;
}
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
 



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 17:35.


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