Created
September 27, 2017 12:23
-
-
Save Hexer10/24ffdbb7468ab4af762b3a5a126b0aab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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