summaryrefslogtreecommitdiff
path: root/sourcemod/scripting/gokz-racing.sp
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-02-17 23:42:09 +0100
committeraura <nw@moneybot.cc>2026-02-17 23:42:09 +0100
commit5e2eb7d67ae933b7566f1944d0bb7744da03d586 (patch)
tree054acff1113270a9cd07933df760f3768c1b6853 /sourcemod/scripting/gokz-racing.sp
parent341db13a008dc12bb22ceb50452d93d01476308c (diff)
move source stuff to its own folder
Diffstat (limited to 'sourcemod/scripting/gokz-racing.sp')
-rw-r--r--sourcemod/scripting/gokz-racing.sp174
1 files changed, 0 insertions, 174 deletions
diff --git a/sourcemod/scripting/gokz-racing.sp b/sourcemod/scripting/gokz-racing.sp
deleted file mode 100644
index 416d28a..0000000
--- a/sourcemod/scripting/gokz-racing.sp
+++ /dev/null
@@ -1,174 +0,0 @@
-#include <sourcemod>
-
-#include <gokz/core>
-#include <gokz/racing>
-
-#undef REQUIRE_EXTENSIONS
-#undef REQUIRE_PLUGIN
-#include <updater>
-
-#pragma newdecls required
-#pragma semicolon 1
-
-
-
-public Plugin myinfo =
-{
- name = "GOKZ Racing",
- author = "DanZay",
- description = "Lets players race against each other",
- version = GOKZ_VERSION,
- url = GOKZ_SOURCE_URL
-};
-
-#define UPDATER_URL GOKZ_UPDATER_BASE_URL..."gokz-racing.txt"
-
-#include "gokz-racing/announce.sp"
-#include "gokz-racing/api.sp"
-#include "gokz-racing/commands.sp"
-#include "gokz-racing/duel_menu.sp"
-#include "gokz-racing/race.sp"
-#include "gokz-racing/race_menu.sp"
-#include "gokz-racing/racer.sp"
-
-
-
-// =====[ PLUGIN EVENTS ]=====
-
-public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
-{
- CreateNatives();
- RegPluginLibrary("gokz-racing");
- return APLRes_Success;
-}
-
-public void OnPluginStart()
-{
- LoadTranslations("gokz-common.phrases");
- LoadTranslations("gokz-racing.phrases");
-
- CreateGlobalForwards();
- RegisterCommands();
-
- OnPluginStart_Race();
-}
-
-public void OnAllPluginsLoaded()
-{
- if (LibraryExists("updater"))
- {
- Updater_AddPlugin(UPDATER_URL);
- }
-}
-
-public void OnLibraryAdded(const char[] name)
-{
- if (StrEqual(name, "updater"))
- {
- Updater_AddPlugin(UPDATER_URL);
- }
-}
-
-
-
-// =====[ CLIENT EVENTS ]=====
-
-public void OnClientPutInServer(int client)
-{
- OnClientPutInServer_Racer(client);
-}
-
-public void OnClientDisconnect(int client)
-{
- OnClientDisconnect_Racer(client);
-}
-
-public Action GOKZ_OnTimerStart(int client, int course)
-{
- Action action = OnTimerStart_Racer(client, course);
- if (action != Plugin_Continue)
- {
- return action;
- }
-
- return Plugin_Continue;
-}
-
-public void GOKZ_OnTimerStart_Post(int client, int course)
-{
- OnTimerStart_Post_Racer(client);
-}
-
-public void GOKZ_OnTimerEnd_Post(int client, int course, float time, int teleportsUsed)
-{
- FinishRacer(client, course);
-}
-
-public Action GOKZ_OnMakeCheckpoint(int client)
-{
- Action action = OnMakeCheckpoint_Racer(client);
- if (action != Plugin_Continue)
- {
- return action;
- }
-
- return Plugin_Continue;
-}
-
-public void GOKZ_OnMakeCheckpoint_Post(int client)
-{
- OnMakeCheckpoint_Post_Racer(client);
-}
-
-public Action GOKZ_OnUndoTeleport(int client)
-{
- Action action = OnUndoTeleport_Racer(client);
- if (action != Plugin_Continue)
- {
- return action;
- }
-
- return Plugin_Continue;
-}
-
-public void GOKZ_RC_OnFinish(int client, int raceID, int place)
-{
- OnFinish_Announce(client, raceID, place);
- OnFinish_Race(raceID);
-}
-
-public void GOKZ_RC_OnSurrender(int client, int raceID)
-{
- OnSurrender_Announce(client, raceID);
-}
-
-public void GOKZ_RC_OnRequestReceived(int client, int raceID)
-{
- OnRequestReceived_Announce(client, raceID);
-}
-
-public void GOKZ_RC_OnRequestAccepted(int client, int raceID)
-{
- OnRequestAccepted_Announce(client, raceID);
- OnRequestAccepted_Race(raceID);
-}
-
-public void GOKZ_RC_OnRequestDeclined(int client, int raceID, bool timeout)
-{
- OnRequestDeclined_Announce(client, raceID, timeout);
- OnRequestDeclined_Race(raceID);
-}
-
-
-
-// =====[ OTHER EVENTS ]=====
-
-public void GOKZ_RC_OnRaceStarted(int raceID)
-{
- OnRaceStarted_Announce(raceID);
-}
-
-public void GOKZ_RC_OnRaceAborted(int raceID)
-{
- OnRaceAborted_Announce(raceID);
-} \ No newline at end of file