check if user is admin or not
i am working on a piece of code that i used from some other coder. the only thing i want to strip here is that everybody can execute this instead of only the admin.
how can i strip the admin check so it will run even if user is not admin PHP Code:
if i understand it correct it will set the current flags of the user aside , than give the user root flag and execute the command that was inserted in this function. Then it will restore the old flags. But the strange thing is that normal users ( non admin ) keep getting the error you do not have acces to this command. |
Re: check if user is admin or not
That does not look like AMXX coding.
If that is for SourcePawn, then you need to post in SourceMod. |
| All times are GMT -4. The time now is 11:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.