summaryrefslogtreecommitdiff
path: root/sourcemod/scripting/gokz-measure/commands.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-measure/commands.sp
parent341db13a008dc12bb22ceb50452d93d01476308c (diff)
move source stuff to its own folder
Diffstat (limited to 'sourcemod/scripting/gokz-measure/commands.sp')
-rw-r--r--sourcemod/scripting/gokz-measure/commands.sp49
1 files changed, 0 insertions, 49 deletions
diff --git a/sourcemod/scripting/gokz-measure/commands.sp b/sourcemod/scripting/gokz-measure/commands.sp
deleted file mode 100644
index 5fe3028..0000000
--- a/sourcemod/scripting/gokz-measure/commands.sp
+++ /dev/null
@@ -1,49 +0,0 @@
-void RegisterCommands()
-{
- RegConsoleCmd("+measure", CommandMeasureStart, "[KZ] Set the measure origin.");
- RegConsoleCmd("-measure", CommandMeasureEnd, "[KZ] Set the measure origin.");
- RegConsoleCmd("sm_measure", CommandMeasureMenu, "[KZ] Open the measurement menu.");
- RegConsoleCmd("sm_measuremenu", CommandMeasureMenu, "[KZ] Open the measurement menu.");
- RegConsoleCmd("sm_measureblock", CommandMeasureBlock, "[KZ] Measure the block distance.");
-}
-
-public Action CommandMeasureMenu(int client, int args)
-{
- DisplayMeasureMenu(client);
- return Plugin_Handled;
-}
-
-public Action CommandMeasureStart(int client, int args)
-{
- if (!IsValidClient(client))
- {
- return Plugin_Handled;
- }
- gB_Measuring[client] = true;
- MeasureGetPos(client, 0);
- return Plugin_Handled;
-}
-
-public Action CommandMeasureEnd(int client, int args)
-{
- if (!IsValidClient(client))
- {
- return Plugin_Handled;
- }
- gB_Measuring[client] = false;
- MeasureGetPos(client, 1);
- MeasureDistance(client, MEASURE_MIN_DIST);
- CreateTimer(4.9, Timer_DeletePoints, GetClientUserId(client));
- return Plugin_Handled;
-}
-
-public Action CommandMeasureBlock(int client, int args)
-{
- if (!IsValidClient(client))
- {
- return Plugin_Handled;
- }
- MeasureBlock(client);
- CreateTimer(4.9, Timer_DeletePoints, GetClientUserId(client));
- return Plugin_Handled;
-} \ No newline at end of file