Raised This Month: $ Target: $400
 0% 

Strip weapons, i dont want c4!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-08-2009 , 07:20   Re: Strip weapons, i dont want c4!
Reply With Quote #5

I already gave you a working code...

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <fun>
#include <hamsandwich>

#define OFFSET_PRIMARYWEAPON    116
#define OFFSET_C4_SLOT        372

StripUserWeapons(id)
{
    new 
iC4Ent get_pdata_cbase(idOFFSET_C4_SLOT)
    if( 
iC4Ent )
    {
        
set_pdata_cbase(idOFFSET_C4_SLOTFM_NULLENT)
    }

    
strip_user_weapons(id)
    
set_pdata_int(idOFFSET_PRIMARYWEAPON0)

    if( 
iC4Ent )
    {
        
entity_set_int(idEV_INT_weaponsentity_get_int(idEV_INT_weapons) | (1<<CSW_C4))
        
set_pdata_cbase(idOFFSET_C4_SLOTiC4Ent)
        
cs_set_user_bpammo(idCSW_C41)
        
cs_set_user_plant(id1)
    }
    return 
PLUGIN_HANDLED

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
 



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 01:30.


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