AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Prevent Buying BPAMMO (https://forums.alliedmods.net/showthread.php?t=278910)

hellmonja 02-10-2016 16:03

Prevent Buying BPAMMO
 
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...

siriusmd99 02-13-2016 04:44

Re: [HELP] Prevent Buying BPAMMO
 
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.

hellmonja 02-13-2016 14:27

Re: [HELP] Prevent Buying BPAMMO
 
hey thanks! yes PLUGIN_HANDLED did work... :)


All times are GMT -4. The time now is 09:34.

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