Raised This Month: $ Target: $400
 0% 

How to remove C4 bomb from user?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 09-30-2012 , 18:38   Re: How to remove C4 bomb from user?
Reply With Quote #7

Hey, only block a user plant C4

PHP Code:
#include <amxmodx>
#include <cstrike>

#define SHOW_BOMB_ICON 0

public plugin_init()
{
    
register_plugin("Disable C4 Arm",AMXX_VERSION_STR,"SmileY");

    
register_event("CurWeapon","CurWeapon","be","1=1");
}

public 
CurWeapon(id)
{
    if(
get_user_weapon(id) == CSW_C4)
    {
        
cs_set_user_plant(id,0,SHOW_BOMB_ICON);

        
client_print(id,print_chat,"[AMXX] C4 Arming is now disabled.");
    }

__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 09-30-2012 at 18:40.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
 



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 08:19.


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