Raised This Month: $ Target: $400
 0% 

Prevent weapon pickup


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 12-31-2006 , 19:25   Prevent weapon pickup
Reply With Quote #1

I was wondering if anyone knew how to prevent a weapon from being picked up for the terrorist team, but the counter terrorists are able to pick up the weapons still..

I know how to force a player to drop weapons but it causes the game to crash once in a while.

If anyone know how to help, please do!
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
stupok
Veteran Member
Join Date: Feb 2006
Old 12-31-2006 , 21:46   Re: Prevent weapon pickup
Reply With Quote #2

Code:
#include <amxmodx> public plugin_init() {      register_event("WeapPickup","check_weapon","b") } public check_weapon(id) {      client_cmd(id,"drop") }
Use search next time.

Last edited by stupok; 12-31-2006 at 21:50.
stupok is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-31-2006 , 21:48   Re: Prevent weapon pickup
Reply With Quote #3

Hook FM_Touch. Check to see if it is a player entity touching a weaponbox entity, and then check the player's team. If everything meets your conditions, return PLUGIN_HANDLED to stop it from occurring, otherwise return PLUGIN_CONTINUE.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 12-31-2006 , 22:02   Re: Prevent weapon pickup
Reply With Quote #4

Quote:
I know how to force a player to drop weapons but it causes the game to crash once in a while.
Read the question next time.

@Avalanche = thanks ill try that
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
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 22:21.


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