Raised This Month: $ Target: $400
 0% 

Solved Prevent Buying BPAMMO


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hellmonja
Senior Member
Join Date: Oct 2015
Old 02-10-2016 , 16:03   Prevent Buying BPAMMO
Reply With Quote #1

Hi guys, I just wanna know how do you prevent a player from buying additional ammo? I have this custom weapon and I want it to replenish its BPAMMO only at round start. I just can't figure out how to prevent players from buying ammo for that certain weapon...

Last edited by hellmonja; 06-25-2017 at 04:25. Reason: Solved...
hellmonja is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 02-13-2016 , 04:44   Re: [HELP] Prevent Buying BPAMMO
Reply With Quote #2

block shop? or if you need shop for other weapons then you can return plugin_handled on "buy secammo" and "secammo" .
register with clcmd these commands and point them to one function where you will return plugin_handled.
Not sure if works.

Last edited by siriusmd99; 02-13-2016 at 04:45.
siriusmd99 is offline
hellmonja
Senior Member
Join Date: Oct 2015
Old 02-13-2016 , 14:27   Re: [HELP] Prevent Buying BPAMMO
Reply With Quote #3

hey thanks! yes PLUGIN_HANDLED did work...
hellmonja 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 09:34.


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