aboutsummaryrefslogtreecommitdiff
path: root/scripting/yuuko_fake_rtv.sp
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/yuuko_fake_rtv.sp')
-rw-r--r--scripting/yuuko_fake_rtv.sp31
1 files changed, 31 insertions, 0 deletions
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 <sourcemod>
+#include <console>
+#include <timers>
+
+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)");
+}
+