Raised This Month: $ Target: $400
 0% 

[REQ] Remove defuse kit from the ground


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kam3n1tza
Member
Join Date: Jul 2011
Old 04-03-2014 , 02:44   [REQ] Remove defuse kit from the ground
Reply With Quote #1

How to edit the code to remove defuse kit from the ground?
All weapons are removed from the ground only defuse kit don't want...

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

new cvar_removedropped

public plugin_init()
{
    
register_plugin("Remove drop weapons""1.0""watch")

    
register_forward(FM_SetModel"fw_SetModel")

    
cvar_removedropped register_cvar("remove_dropped_weapons""2")
}

public 
fw_SetModel(entity, const model[])
{
    new 
len strlen(model)

    if(
len 8) return

    if (
get_pcvar_float(cvar_removedropped) > 0.0)
    {
        static 
classname[10]
        
pev(entitypev_classnameclassnamecharsmax(classname))
        
        if (
equal(classname"weaponbox"))
        {
            
set_pev(entitypev_nextthinkget_gametime() + get_pcvar_float(cvar_removedropped))
            return
        }
    }

kam3n1tza 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 05:55.


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