Raised This Month: $ Target: $400
 0% 

Remove Drop Weapons without C4


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kiryxapro
New Member
Join Date: May 2013
Old 05-23-2013 , 10:58   Remove Drop Weapons without C4
Reply With Quote #1

Hello!I have one problem with plugin "Remove Drop Weapons".This plugin dropped all weapons including C4.I want to this plugin do not dropped C4.How can i realised?

Sma code:
Code:
#include <amxmodx>
#include <fakemeta>
 
new PLUGIN[] = "Remove Drop Weapons"
new VERSION[] = "0.0.2"
new AUTHOR[] = "Athix"
 
new Pcvar_Remove;
new Pcvar_TimeRemove;
new DeleteWeapons;
 
public plugin_init()
{
        register_plugin(PLUGIN, VERSION, AUTHOR)
       
        Pcvar_Remove = register_cvar("amx_remove_item_dropped", "1")
        Pcvar_TimeRemove = register_cvar("amx_time_to_remove","1.0")
       
        register_forward(FM_SetModel, "Fw_SetModel")
       
        DeleteWeapons = get_pcvar_num(Pcvar_Remove)
}
 
public Fw_SetModel(entity, const model[])
{
        static Float:Timetoremove
        Timetoremove = get_pcvar_float(Pcvar_TimeRemove)
       
        if (DeleteWeapons > 0)
        {
                set_task(Timetoremove, "RemoveItems", entity)
                return;
        }
}
 
public RemoveItems(entity)
{
        static Class[10]
        pev(entity, pev_classname, Class, sizeof Class - 1)
               
        if (equal(Class, "weaponbox"))
        {
                set_pev(entity, pev_nextthink, get_gametime() + DeleteWeapons)
                return;
        }
}
kiryxapro 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 16:23.


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