mirror of
https://codeberg.org/spire/who.git
synced 2026-06-03 10:14:06 +02:00
init
This commit is contained in:
commit
ae9fed460b
9 changed files with 220 additions and 0 deletions
33
plugin/who.sp
Normal file
33
plugin/who.sp
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue