Raised This Month: $ Target: $400
 0% 

Need a weapon pickup hook


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Misery
Senior Member
Join Date: Dec 2010
Old 06-24-2012 , 03:23   Need a weapon pickup hook
Reply With Quote #1

Hi,

I was wondering... Is there a way to hook *any* weapon/item pickup, any but the one given as default by the map on CGameRules:layerSpawn() ?

Is there a way to retrieve a kind of list of default weapons given on PlayerSpawn(), so I could do for example
Code:
Hook_OnWeaponPickup(id, weaponid)
{
       if (!isWeaponGivenOnPlayerSpawn(weaponid)
                    drop_weapon(id, weaponid);
}
Is it possible?

Thanks!

Cordially,
Misery
Misery 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 06:15.


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