mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
add !specbot to shavit-misc as an alias for !spec ... (which makes it spec the replay bot if it exists)
This commit is contained in:
parent
412812693f
commit
bb49da4d9c
@ -186,6 +186,7 @@ public void OnPluginStart()
|
||||
// spec
|
||||
RegConsoleCmd("sm_spec", Command_Spec, "Moves you to the spectators' team. Usage: sm_spec [target]");
|
||||
RegConsoleCmd("sm_spectate", Command_Spec, "Moves you to the spectators' team. Usage: sm_spectate [target]");
|
||||
RegConsoleCmd("sm_specbot", Command_SpecBot, "Spectates the replay bot (usually)");
|
||||
|
||||
// hide
|
||||
RegConsoleCmd("sm_hide", Command_Hide, "Toggle players' hiding.");
|
||||
@ -206,7 +207,7 @@ public void OnPluginStart()
|
||||
RegConsoleCmd("sm_practice", Command_Noclip, "Toggles noclip. (sm_nc alias)");
|
||||
RegConsoleCmd("sm_nc", Command_Noclip, "Toggles noclip.");
|
||||
RegConsoleCmd("sm_noclipme", Command_Noclip, "Toggles noclip. (sm_nc alias)");
|
||||
|
||||
|
||||
// qol
|
||||
RegConsoleCmd("sm_autorestart", Command_AutoRestart, "Toggles auto-restart.");
|
||||
RegConsoleCmd("sm_autoreset", Command_AutoRestart, "Toggles auto-restart.");
|
||||
@ -1650,6 +1651,11 @@ public Action Command_Hide(int client, int args)
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
public Action Command_SpecBot(int client, int args)
|
||||
{
|
||||
return Command_Spec(client, 0);
|
||||
}
|
||||
|
||||
public Action Command_Spec(int client, int args)
|
||||
{
|
||||
if(!IsValidClient(client))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user