Restrict weapons for players and allow for admins
I would like to restrict a certain weapon and only allow admins to wear it, is there any plugin that can do this?
|
Re: Restrict weapons for players and allow for admins
Something like this might work - untested - it's SM1.7+ syntax - it's just for the weapon_m4a1 - edit that to what you want. And only admins who have the generic admin flag (or whatever you override the command "allow_admin_weapon" to)
PHP Code:
|
Re: Restrict weapons for players and allow for admins
Quote:
|
Re: Restrict weapons for players and allow for admins
You never said it was for TF. I don't know if CS_OnBuyCommand works for TF and I don't know TF well enough.
The SDKHooks should still work for OnWeaponCanUse though. |
All times are GMT -4. The time now is 12:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.