Raised This Month: $ Target: $400
 0% 

Blocking all weapons picking up.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-06-2010 , 06:52   Re: Blocking all weapons picking up.
Reply With Quote #9

PHP Code:
#include <amxmodx>
#include <engine>
 
public plugin_init()
{
        
register_plugin("No Weapon Pickup""1.1""hleV");
 
        new const 
szPlayer[] = "player";
 
        
#if defined REMOVE_WEAPONS
                
new const szTouch[] = "fwdTouch";
        
#else
                
new const szTouch[] = "";
        
#endif
 
        
register_touch("weaponbox"szPlayerszTouch);
        
register_touch("armoury_entity"szPlayerszTouch);
        
register_touch("weapon_shield"szPlayerszTouch);
}
 
#if defined REMOVE_WEAPONS
public fwdTouch(iEntity)

        if (!
is_valid_ent(iEntity))
                return 
PLUGIN_CONTINUE;
 
        
call_think(iEntity);
 
        return 
PLUGIN_HANDLED;
}
#endif 
__________________

Last edited by hleV; 03-06-2010 at 07:41.
hleV 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 08:43.


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