Raised This Month: $ Target: $400
 0% 

Defuse Kits on Ground


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 09-19-2011 , 23:14   Re: Defuse Kits on Ground
Reply With Quote #9

Quote:
Originally Posted by Fedde View Post
Ok,post the code if you need help again xD.
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>


public plugin_init()
{
    
register_plugin("Plugin Name""Version""Author");
    
RegisterHam(Ham_Spawn"item_thighpack""fwdWeaponDrop"1);
    
RegisterHam(Ham_Spawn"weaponbox""fwdWeaponDrop"1); //Weapon box spawn
    
RegisterHam(Ham_Spawn"armoury_entity""fwdWeaponDrop"1); //Armor entity Spawn
}
public 
fwdWeaponDrop(iEnt)
{    
    if(
pev_valid(iEnt))
    {
        
client_print(0print_chat"SPAWN FIRED");
       
// set_task(0.5, "RemoveWeapons", iEnt);
    
}
}

public 
RemoveWeapons(iEnt)
{
    if(
pev_valid(iEnt))
    {
        new 
szModelName[32];
        
pev(iEntpev_modelszModelNamecharsmax(szModelName));
        
        if(
containi(szModelName"backpack") == -1)
        {
            
set_pev(iEntpev_flagsFL_KILLME);
            
ExecuteHam(Ham_ThinkiEnt);
        }
    }

item_thighpack no spawn?
Doc-Holiday 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 19:30.


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