cs 1.6 flag selection
1 Attachment(s)
Hello guys, someone know how to select who will have access in a plugin? and change the flag to me only (creator). Thank you
I gave u the sma file too. |
Re: cs 1.6 flag selection
Add a check for access at the beginning of each of the functions to which you want to restrict access:
PHP Code:
|
Re: cs 1.6 flag selection
Thank you. i need to define ADMIN_LEVEL_A too right?
|
Re: cs 1.6 flag selection
Quote:
|
Re: cs 1.6 flag selection
Thanks a lot my man!
|
Re: cs 1.6 flag selection
FYI, I forgot to add the "not" (!) for the access check. I've fixed that above.
|
Re: cs 1.6 flag selection
Quote:
Okay okay thank you mate. i will restrict access for players and admins (only creators will have it) |
Re: cs 1.6 flag selection
Quote:
but something went wrong |
Re: cs 1.6 flag selection
Please attach your edited version so that we can see what your modifications look like. Adding the semicolon after the "return PLUGIN_HANDLED" is required due to the "#pragma semicolon 1;" (I've updated my example above accordingly).
|
| All times are GMT -4. The time now is 15:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.