From b4651d5aa991c25467077838b082fa73ee6921d0 Mon Sep 17 00:00:00 2001 From: yuuko Date: Thu, 29 Aug 2024 19:43:58 -0700 Subject: dress up for public release --- scripting/yuuko_fake_rtv.sp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 scripting/yuuko_fake_rtv.sp (limited to 'scripting/yuuko_fake_rtv.sp') diff --git a/scripting/yuuko_fake_rtv.sp b/scripting/yuuko_fake_rtv.sp new file mode 100644 index 0000000..23628ac --- /dev/null +++ b/scripting/yuuko_fake_rtv.sp @@ -0,0 +1,31 @@ +#include +#include +#include + +public Plugin myinfo = { + name = "yuuko's fake rtv", + author = "yuuko", + description = "stubs out rtv to tell players they can vote for it instead", + version = SOURCEMOD_VERSION, + url = "https://www.partyvan.io/" +}; + +public Action Command_FakeRTV(int client, int args) +{ + PrintToChat(client, "NOTICE: Open Fortress has a native equivalent to RTV as of Revision 20; see \"End map and start vote\" in the vote menu."); + return Plugin_Handled; +} + +public Action OnClientSayCommand(int client, const char[] command, const char[] sArgs) +{ + if (strcmp(sArgs, "rtv", false) == 0 || strcmp(sArgs, "rockthevote", false) == 0) + return Command_FakeRTV(client, 0); + return Plugin_Continue; +} + +public void OnPluginStart() +{ + RegConsoleCmd("sm_rtv", Command_FakeRTV, "rock the vote (not really)"); + RegConsoleCmd("sm_rockthevote", Command_FakeRTV, "rock the vote (not really)"); +} + -- cgit v1.2.3