Raised This Month: $ Target: $400
 0% 

Solved Only 1 C4 [Strip if Multiple C4's]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Karachi, Pakistan
Old 01-17-2021 , 02:57   Re: Only 1 C4 [Strip if Multiple C4's]
Reply With Quote #3

Quote:
Originally Posted by iceeedr View Post
Not tested

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <reapi>
#include <hamsandwich>
#include <csx>

#define VERSION "0.0.1"
#define PLUGIN ""

new bool:g_bCanPlantC4

public plugin_init()
{
        
register_plugin(PLUGINVERSION"ConnorMcLeod & iceeedR")
        
RegisterHam(Ham_Weapon_PrimaryAttack"weapon_c4""CC4_PrimaryAttack")
        
register_event("HLTV","EventNewRnd""a""1=0""2=0")
}

public 
EventNewRnd()
{
        
g_bCanPlantC4 true
}

public 
bomb_planted(planter)
{
        
g_bCanPlantC4 false
}

public 
CC4_PrimaryAttackiC4 )
{
        if( !
g_bCanPlantC4 )
        {
                new 
id get_member(idm_pPlayer)
                
client_print(idprint_chat"C4 is actually disabled !!")
                
set_member(iC4m_flNextAttack1.0)
                return 
HAM_SUPERCEDE
        
}
        return 
HAM_IGNORED

Thank You !! Can you please specify which idea you implemented? It will help me to check much more easily, seems like 3rd? but still I can't see through coding eyes.
Alber9091 is offline
 


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 00:52.


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