Skip to content

Instantly share code, notes, and snippets.

@Hexer10
Created September 27, 2017 12:23
Show Gist options
  • Save Hexer10/24ffdbb7468ab4af762b3a5a126b0aab to your computer and use it in GitHub Desktop.
Save Hexer10/24ffdbb7468ab4af762b3a5a126b0aab to your computer and use it in GitHub Desktop.
public void OnPluginStart()
{
AddCommandListener(OnSay, "say");
AddCommandListener(OnSay, "say_team");
AddCommandListener(OnCmd);
}
public Action OnSay(int client, const char[] command, int args)
{
char sCmd[32];
GetCmdArgString(sCmd, sizeof(sCmd));
if (StrContains(sCmd, "last") != -1)
return Plugin_Stop;
if (StrContains(sCmd, "lr") != -1)
return Plugin_Stop;
return Plugin_Continue;
}
public Action OnCmd(int client, const char[] command, int args)
{
if (StrContains(command, "last") != -1)
return Plugin_Stop;
if (StrContains(command, "lr") != -1)
return Plugin_Stop;
return Plugin_Continue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment