Currently attempting to make a simple command that when typed, all commands people can use are printed to console. The issue is it's not printing it in order. I'm completely new to coding in general and any help is appreciated. Sorry if it's an easy fix.
This is what I've got so far:
Code:
#include <sourcemod>
public OnPluginStart()
{
RegConsoleCmd("sm_commands", Command_commands);
}
public Action Command_commands(int client,int args)
{
PrintToChat(client, "List printing to console....");
PrintToConsole(client, "|------------------------------------------------------------------------------------------------------|");
PrintToConsole(client, "| Join Commands |");
PrintToConsole(client, "|------------------------------------------------------------------------------------------------------|");
PrintToConsole(client, "| - !join - Join a survivor slot. |");
PrintToConsole(client, "| - !js - Join a survivor slot. |");
PrintToConsole(client, "| - !spec - Join spectators. |");
PrintToConsole(client, "|------------------------------------------------------------------------------------------------------|");
PrintToConsole(client, "| Kill Commands |");
PrintToConsole(client, "|------------------------------------------------------------------------------------------------------|");
PrintToConsole(client, "| - !kill - Kills the survivor you're currently playing as. |");
PrintToConsole(client, "| - !killbots - Kills all the bots. |");
PrintToConsole(client, "| - !sb - Teleports all bots to your location and then they're killed a few seconds later. |");
PrintToConsole(client, "|------------------------------------------------------------------------------------------------------|");
}
EDIT: I'm dumb.