This commit is contained in:
Robin Appelman 2025-05-04 00:39:32 +02:00
commit ae9fed460b
9 changed files with 220 additions and 0 deletions

33
plugin/who.sp Normal file
View file

@ -0,0 +1,33 @@
#pragma semicolon 1
#include <sourcemod>
public Plugin:myinfo = {
name = "who",
author = "Icewind",
description = "Who?",
version = "0.1",
url = "https://spire.tf"
};
public Action OnClientSayCommand(int client, const char[] command, const char[] sArgs) {
if (strcmp(sArgs, "!who", false) == 0) {
CreateTimer(0.1, HandleWhoCommand, client);
}
if (strcmp(sArgs, "!how", false) == 0) {
CreateTimer(0.1, HandleHowCommand, client);
}
return Plugin_Continue;
}
public Action HandleWhoCommand(Handle Timer, int client) {
PrintToChatAll("\x01[\x03SDR\x01]: They always ask \"Who is server?\". But nobody ever asks \"How is server?\".");
return Plugin_Handled;
}
public Action HandleHowCommand(Handle Timer, int client) {
PrintToChatAll("\x01[\x03SDR\x01]: Doing well, thanks for asking.");
return Plugin_Handled;
}