View Single Post
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 06-07-2021 , 16:55   Re: How to use CheckCommandAcces
Reply With Quote #4

Yeah the documents are kinda confusing sometimes (even people refusing that it is not clear for everybody)

I usually use this command like this:

PHP Code:
    if (!CheckCommandAccess(client"sm_somecommandhere"0))
        return; 
To exit the function if the user don't have "access",
You can use "CheckCommandAccess" for other things aswell,
But I usually use to check if someone has access to a command and if it has, then I allow something.

Maybe is not right what I thought it does but this is some background that I have.
__________________

Last edited by Marttt; 06-07-2021 at 16:56.
Marttt is offline