Raised This Month: $ Target: $400
 0% 

block pick up a nades from the floor


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.Waffle
Senior Member
Join Date: Dec 2011
Old 04-30-2012 , 08:32   block pick up a nades from the floor
Reply With Quote #1

hello ,
PHP Code:
public plugin_init() {
    
RegisterHam(Ham_Touch"armoury_entity""FwdHamPickupWeapon")
}
    
public 
FwdHamPickupWeapon( ) 
{        
    return 
HAM_SUPERCEDE;  

how can i block ONLY pick up Nades ?
thx.
Mr.Waffle is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 04-30-2012 , 10:13   Re: block pick up a nades from the floor
Reply With Quote #2

PHP Code:
public plugin_init()
{
    
RegisterHam(Ham_Touch"weaponbox""fw_TouchWeapon")
    
RegisterHam(Ham_Touch"armoury_entity""fw_TouchWeapon")
}

// Ham Weapon Touch Forward
public fw_TouchWeapon(weaponid)
{
    if(!
is_user_alive(id))
        return 
HAM_IGNORED

    
static classname[32]
    
pev(weaponpev_classnameclassnamesizeof(classname))

    if(
equal(classname"weapon_hegrenade"))
        return 
HAM_SUPERCEDE
    
    
return HAM_IGNORED;


Last edited by dias; 04-30-2012 at 10:13.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
Mr.Waffle
Senior Member
Join Date: Dec 2011
Old 04-30-2012 , 15:26   Re: block pick up a nades from the floor
Reply With Quote #3

It doesn't work..
Mr.Waffle is offline
Old 05-01-2012, 10:43
Mr.Waffle
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Reply



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 07:46.


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