Admin access
Hello! I could use a hand.
I need help to add "vip/admin access" to my plugin(not scripted by me entirely) so when people want to bring the menu up they need to have like "be" access or something :) Let's say they type /shop, then only the people who have "be" access gets the menu. I hope you understood! Thanks :P |
Re: Admin access
PHP Code:
|
Re: Admin access
Quote:
|
Re: Admin access
in plugin_init() u put something like this:
PHP Code:
PHP Code:
every ADMIN with the flag "e" = slay or slap, have access to this menu |
Re: Admin access
Quote:
|
Re: Admin access
read my post again, i forgot to add the check :)
|
Re: Admin access
Quote:
My plan was to make a shop for VIP's so they can buy AWP/Deagle in HnS, then I was planning to add so you can buy VIP for XP :P |
Re: Admin access
Quote:
Code:
if(get_user_flags(id) & ADMIN_IMMUNITY) |
Re: Admin access
Quote:
|
Re: Admin access
Quote:
|
| All times are GMT -4. The time now is 21:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.