Thread: move to trash
View Single Post
CliptonHeist
Senior Member
Join Date: Feb 2016
Old 07-19-2019 , 16:51   Re: No perm no chat
Reply With Quote #2

PHP Code:
public void OnPluginStart()
{
    
AddCommandListener(Listener_Say"say");
    
AddCommandListener(Listener_Say"say_team");
}

public 
Action Listener_Say(int Client, const char[] sCommandint iArgs)
{
    if(
Client <= || Client MaxClients || !IsClientInGame(Client)) return Plugin_Handled;

    if(!
CheckCommandAccess(Client"sm_somethingsomething"ADMFLAG_RESERVATION))
    {
        
PrintToChat(Client"[SM] You cannot use the message box because you do not have permission");
        return 
Plugin_Handled;
    }

    return 
Plugin_Continue;

CliptonHeist is offline