give access only in some cases
is there a possibilty to give to someone access only in some cases?
lets give an example, amx_slay, if you are a normal player you dont have access, but what if i add in a vipmenu the option to slay someone, am i able to give him permission to slay him without giving him slay flag? |
Re: give access only in some cases
Use custom flags for command as well for VIP (for instance, 'z' is default for players,give VIPs 'x' flag)
|
Re: give access only in some cases
in plmenu.sma change an if statement on line 508 from this
PHP Code:
PHP Code:
|
Re: give access only in some cases
well, i think i got this but will the VIP be able to use amx_slay? cuz i dont want give him that permission, only when he uses it by vipmenu
EDIT: djsoftero, i just gave amx_slay as an example, that's not the command i'd like to give |
Re: give access only in some cases
Quote:
But you can use a boolean which checks if command is executed by menu, switch it to true on PHP Code:
PHP Code:
|
Re: give access only in some cases
Quote:
|
| All times are GMT -4. The time now is 07:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.