Raised This Month: $ Target: $400
 0% 

Disable weapon pick up


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Kard1nal
Senior Member
Join Date: Dec 2012
Location: Russia
Old 03-08-2013 , 08:15   Re: Disable weapon pick up
Reply With Quote #8

Only if you got this function (native_to_check_hero(id)) in this plugin and it returns true.

Natives makes in another way, you should search about them.

Edit: and if you want to add IF in ham function, you should do like this to prevent errors:
Code:
public player_touchweapon(id, ent) { if(somefunc(someparam)) return HAM_SUPERCEDE return HAM_IGNORED //Return this when you don't want to block picking-up }
__________________
Sorry for my English, I'm Russian.

Last edited by Kard1nal; 03-08-2013 at 08:26.
Kard1nal is offline
Send a message via Skype™ to Kard1nal
 



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 21:42.


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