Raised This Month: $51 Target: $400
 12% 

[HELP] Knifes for VIP and for ALL


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SpirT
Senior Member
Join Date: Sep 2018
Location: Portugal
Old 04-06-2019 , 06:54   [HELP] Knifes for VIP and for ALL
Reply With Quote #1

Hello guys. Today I decided to do something with the knifes menu. I want to make players with flag "o" that are allowed to equip all knifes from the !knifes menu. Then I want to the player without the flag, that are only allowed to equip Gut Knife, Falchion Knife and Flip Knife.

Can someone send me the plugin edited or reply where do i have to change it?

PS: I'm using this plugin (https://forums.alliedmods.net/showthread.php?t=298770)

Best Regards,

SpirT
__________________
SpirT is offline
adma
Senior Member
Join Date: Oct 2015
Old 04-07-2019 , 01:11   Re: [HELP] Knifes for VIP and for ALL
Reply With Quote #2

Inside menus.sp there is a function called CreateKnifeMenu

Use CheckCommandAccess or GetUserFlagBits to check if the client has the flag "o".

Then move all the knives you want only for "o" flag inside an if (client has o flag) statement.
__________________
adma 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 06:31.


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