Raised This Month: $ Target: $400
 0% 

Disable drop weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
silentscope
Junior Member
Join Date: Jul 2011
Old 08-21-2012 , 13:35   Disable drop weapon
Reply With Quote #1

Hello, i would like to disable drop weapon functionality, so the player can only pickup weapons.
Anyone can help me to code this?
silentscope is offline
themike007
New Member
Join Date: Jul 2011
Old 08-22-2012 , 06:32   Re: Disable drop weapon
Reply With Quote #2

try:
PHP Code:
#include <amxmodx>

public plugin_init() {
    
register_plugin("Disable drop weapon""0.1""themike007")
    
    
register_clcmd("drop""cmd_drop")
}

public 
cmd_drop(id) {
    return 
PLUGIN_HANDLED;

themike007 is offline
silentscope
Junior Member
Join Date: Jul 2011
Old 08-22-2012 , 10:51   Re: Disable drop weapon
Reply With Quote #3

Thanks
silentscope is offline
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 10:21.


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