diff options
| author | aura <nw@moneybot.cc> | 2026-02-17 23:42:09 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-02-17 23:42:09 +0100 |
| commit | 5e2eb7d67ae933b7566f1944d0bb7744da03d586 (patch) | |
| tree | 054acff1113270a9cd07933df760f3768c1b6853 /source/sourcemod/scripting/gokz-racing/commands.sp | |
| parent | 341db13a008dc12bb22ceb50452d93d01476308c (diff) | |
move source stuff to its own folder
Diffstat (limited to 'source/sourcemod/scripting/gokz-racing/commands.sp')
| -rw-r--r-- | source/sourcemod/scripting/gokz-racing/commands.sp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/source/sourcemod/scripting/gokz-racing/commands.sp b/source/sourcemod/scripting/gokz-racing/commands.sp new file mode 100644 index 0000000..9fbd7ab --- /dev/null +++ b/source/sourcemod/scripting/gokz-racing/commands.sp @@ -0,0 +1,47 @@ +void RegisterCommands() +{ + RegConsoleCmd("sm_accept", CommandAccept, "[KZ] Accept an incoming race request."); + RegConsoleCmd("sm_decline", CommandDecline, "[KZ] Decline an incoming race request."); + RegConsoleCmd("sm_surrender", CommandSurrender, "[KZ] Surrender your race."); + RegConsoleCmd("sm_duel", CommandDuel, "[KZ] Open the duel menu."); + RegConsoleCmd("sm_challenge", CommandDuel, "[KZ] Open the duel menu."); + RegConsoleCmd("sm_abort", CommandAbort, "[KZ] Abort the race you are hosting."); + + RegAdminCmd("sm_race", CommandRace, ADMFLAG_RESERVATION, "[KZ] Open the race hosting menu."); +} + +public Action CommandAccept(int client, int args) +{ + AcceptRequest(client); + return Plugin_Handled; +} + +public Action CommandDecline(int client, int args) +{ + DeclineRequest(client); + return Plugin_Handled; +} + +public Action CommandSurrender(int client, int args) +{ + SurrenderRacer(client); + return Plugin_Handled; +} + +public Action CommandDuel(int client, int args) +{ + DisplayDuelMenu(client); + return Plugin_Handled; +} + +public Action CommandAbort(int client, int args) +{ + AbortHostedRace(client); + return Plugin_Handled; +} + +public Action CommandRace(int client, int args) +{ + DisplayRaceMenu(client); + return Plugin_Handled; +}
\ No newline at end of file |
