default:
case CMD_REQUEST_USAGE:
{
- print_to(self, "\nUsage:^3 sv_cmd cvar_changes\n");
- print_to(self, " No arguments required.\n");
- //print_to(self, "See also: ^2cvar_purechanges^7\n");
+ print_to(self, "\nUsage:^3 sv_cmd cvar_changes");
+ print_to(self, " No arguments required.");
+ //print_to(self, "See also: ^2cvar_purechanges^7");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(self, "\nUsage:^3 sv_cmd cvar_purechanges\n");
- print_to(self, " No arguments required.\n");
- //print_to(self, "See also: ^2cvar_changes^7\n");
+ print_to(self, "\nUsage:^3 sv_cmd cvar_purechanges");
+ print_to(self, " No arguments required.");
+ //print_to(self, "See also: ^2cvar_changes^7");
return;
}
}
if(command)
wordwrap_sprint(command, 1111); // why 1111?
else
- print_to(self, "ERROR: unsupported info command\n");
+ print_to(self, "ERROR: unsupported info command");
return; // never fall through to usage
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(self, "\nUsage:^3 cmd info request\n");
- print_to(self, " Where 'request' is the suffixed string appended onto the request for cvar.\n");
+ print_to(self, "\nUsage:^3 cmd info request");
+ print_to(self, " Where 'request' is the suffixed string appended onto the request for cvar.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(self, "\nUsage:^3 cmd ladder\n");
- print_to(self, " No arguments required.\n");
+ print_to(self, "\nUsage:^3 cmd ladder");
+ print_to(self, " No arguments required.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(self, "\nUsage:^3 cmd lsmaps\n");
- print_to(self, " No arguments required.\n");
+ print_to(self, "\nUsage:^3 cmd lsmaps");
+ print_to(self, " No arguments required.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(self, "\nUsage:^3 cmd lsnewmaps\n");
- print_to(self, " No arguments required.\n");
+ print_to(self, "\nUsage:^3 cmd lsnewmaps");
+ print_to(self, " No arguments required.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(self, "\nUsage:^3 cmd maplist\n");
- print_to(self, " No arguments required.\n");
+ print_to(self, "\nUsage:^3 cmd maplist");
+ print_to(self, " No arguments required.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print("\nUsage:^3 sv_cmd rankings\n");
- print(" No arguments required.\n");
+ print("\nUsage:^3 sv_cmd rankings");
+ print(" No arguments required.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(self, "\nUsage:^3 cmd rankings\n");
- print_to(self, " No arguments required.\n");
+ print_to(self, "\nUsage:^3 cmd rankings");
+ print_to(self, " No arguments required.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(self, "\nUsage:^3 cmd records\n");
- print_to(self, " No arguments required.\n");
+ print_to(self, "\nUsage:^3 cmd records");
+ print_to(self, " No arguments required.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(self, "\nUsage:^3 cmd teamstatus\n");
- print_to(self, " No arguments required.\n");
+ print_to(self, "\nUsage:^3 cmd teamstatus");
+ print_to(self, " No arguments required.");
return;
}
}
if(autocvar_sv_timeout)
{
if (!timeoutStatus)
- return print_to(self, "^7Error: There is no active timeout which could be aborted!\n");
+ return print_to(self, "^7Error: There is no active timeout which could be aborted!");
if (self != timeoutInitiator)
- return print_to(self, "^7Error: You may not abort the active timeout. Only the player who called it can do that!\n");
+ return print_to(self, "^7Error: You may not abort the active timeout. Only the player who called it can do that!");
if (timeoutStatus == 1)
{
timeoutHandler.nextthink = time; //timeoutHandler has to take care of it immediately
}
else
- print_to(self, "^7Error: Your resumegame call was discarded!\n");
+ print_to(self, "^7Error: Your resumegame call was discarded!");
}
}
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(self, "\nUsage:^3 cmd timein\n");
- print_to(self, " No arguments required.\n");
+ print_to(self, "\nUsage:^3 cmd timein");
+ print_to(self, " No arguments required.");
return;
}
}
if(self.classname == "player")
{
if(vote_called)
- print_to(self, "^7Error: you can not call a timeout while a vote is active!\n");
+ print_to(self, "^7Error: you can not call a timeout while a vote is active!");
else
{
if (inWarmupStage && !g_warmup_allow_timeout)
- return print_to(self, "^7Error: You can not call a timeout in warmup-stage!\n");
+ return print_to(self, "^7Error: You can not call a timeout in warmup-stage!");
if (time < game_starttime )
- return print_to(self, "^7Error: You can not call a timeout while the map is being restarted!\n");
+ return print_to(self, "^7Error: You can not call a timeout while the map is being restarted!");
if (timeoutStatus != 2) {
//if the map uses a timelimit make sure that timeout cannot be called right before the map ends
lastPossibleTimeout = (myTl*60) - autocvar_sv_timeout_leadtime - 1;
if (lastPossibleTimeout < time - game_starttime)
- return print_to(self, "^7Error: It is too late to call a timeout now!\n");
+ return print_to(self, "^7Error: It is too late to call a timeout now!");
}
}
//player may not call a timeout if he has no calls left
if (self.allowedTimeouts < 1)
- return print_to(self, "^7Error: You already used all your timeout calls for this map!\n");
+ return print_to(self, "^7Error: You already used all your timeout calls for this map!");
//now all required checks are passed
}
}
else
- print_to(self, "^7Error: only players can call a timeout!\n");
+ print_to(self, "^7Error: only players can call a timeout!");
}
}
return; // never fall through to usage
default:
case CMD_REQUEST_USAGE:
{
- print_to(self, "\nUsage:^3 cmd timeout\n");
- print_to(self, " No arguments required.\n");
+ print_to(self, "\nUsage:^3 cmd timeout");
+ print_to(self, " No arguments required.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(self, "\nUsage:^3 cmd who\n");
- print_to(self, " No arguments required.\n");
+ print_to(self, "\nUsage:^3 cmd who");
+ print_to(self, " No arguments required.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(self, "\nUsage:^3 cmd \n");
- print_to(self, " No arguments required.\n");
+ print_to(self, "\nUsage:^3 cmd ");
+ print_to(self, " No arguments required.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print("\nUsage:^3 vote abstain\n");
- print(" No arguments required.\n");
+ print_to(caller, "\nUsage:^3 vote abstain");
+ print_to(caller, " No arguments required.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print("\nUsage:^3 vote call\n");
- print(" TODO.\n");
+ print_to(caller, "\nUsage:^3 vote call command");
+ print_to(caller, " Where 'command' is the command to request a vote upon.");
+ print_to(caller, "Examples: call gotomap dance");
+ print_to(caller, " call endmatch");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print("\nUsage:^3 vote master action [arguments]\n");
- print(" TODO.\n");
+ print_to(caller, "\nUsage:^3 vote master [action [command | password]]");
+ print_to(caller, " If action is left blank, it calls a vote for you to become master.");
+ print_to(caller, " Otherwise the actions are either 'do' a command or 'login' as master.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print("\nUsage:^3 vote no\n");
- print(" No arguments required.\n");
+ print_to(caller, "\nUsage:^3 vote no");
+ print_to(caller, " No arguments required.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print("\nUsage:^3 vote status\n");
- print(" No arguments required.\n");
+ print_to(caller, "\nUsage:^3 vote status");
+ print_to(caller, " No arguments required.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print("\nUsage:^3 vote stop\n");
- print(" No arguments required.\n");
+ print_to(caller, "\nUsage:^3 vote stop");
+ print_to(caller, " No arguments required.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print("\nUsage:^3 vote yes\n");
- print(" No arguments required.\n");
+ print_to(caller, "\nUsage:^3 vote yes");
+ print_to(caller, " No arguments required.");
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print("\nUsage:^3 vote \n");
- print(" No arguments required.\n");
+ print_to(caller, "\nUsage:^3 vote ");
+ print_to(caller, " No arguments required.");
return;
}
}
if(argc == 2) // help display listing all commands
{
- print("\nUsage:^3 ", command_origin, " vote COMMAND...^7, where possible commands are:\n");
+ print_to(caller, strcat("\nUsage:^3 ", command_origin, " vote COMMAND...^7, where possible commands are:"));
#define VOTE_COMMAND(name,function,description,assignment) \
- { if(Votecommand_check_assignment(caller, assignment)) { print(" ^2", name, "^7: ", description, "\n"); } }
+ { if(Votecommand_check_assignment(caller, assignment)) { print_to(caller, strcat(" ^2", name, "^7: ", description)); } }
VOTE_COMMANDS(0, caller, 0, "")
#undef VOTE_COMMAND
- print("For help about specific commands, type ", command_origin, " vote help COMMAND\n");
+ print_to(caller, strcat("For help about specific commands, type ", command_origin, " vote help COMMAND"));
}
else // usage for individual command
{