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
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 01-16-2021 , 23:59   Re: Only 1 C4 [Strip if Multiple C4's]
Reply With Quote #2

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

__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
 



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:50.


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