// =========================================================
// Server side networked commands code, reworked by Samual
-// Last updated: December 25th, 2011
+// Last updated: December 26th, 2011
// =========================================================
float SV_ParseClientCommand_floodcheck()
default:
case CMD_REQUEST_USAGE:
{
- sprint(self, "\nUsage:^3 cmd checkfail message\n");
+ sprint(self, "\nUsage:^3 cmd checkfail <message>\n");
sprint(self, " Where 'message' is the message reported by client about the fail.\n");
return;
}
default:
case CMD_REQUEST_USAGE:
{
- sprint(self, "\nUsage:^3 cmd selfstuff command\n");
+ sprint(self, "\nUsage:^3 cmd selfstuff <command>\n");
sprint(self, " Where 'command' is the string to be stuffed to your client.\n");
return;
}
entity tell_to = GetFilteredEntity(argv(1));
float tell_accepted = VerifyClientEntity(tell_to, TRUE, FALSE);
- if(tell_accepted > 0)
+ if(tell_accepted > 0) // the target is a real client
{
- if(tell_to != self)
+ if(tell_to != self) // and we're allowed to send to them :D
{
Say(self, FALSE, tell_to, substring(command, argv_start_index(2), argv_end_index(-1) - argv_start_index(2)), TRUE);
return;
default:
case CMD_REQUEST_USAGE:
{
- sprint(self, "\nUsage:^3 cmd voice messagetype soundname\n");
+ sprint(self, "\nUsage:^3 cmd voice messagetype <soundname>\n");
sprint(self, " 'messagetype' is the type of broadcast to do, like team only or such,\n");
sprint(self, " and 'soundname' is the string/filename of the sound/voice message to play.\n");
return;
default:
case CMD_REQUEST_USAGE:
{
- print_to(caller, "\nUsage:^3 vote abstain");
+ print_to(caller, strcat("\nUsage:^3 ", GetCommandPrefix(caller), " vote abstain");
print_to(caller, " No arguments required.");
return;
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(caller, "\nUsage:^3 vote call command");
+ print_to(caller, strcat("\nUsage:^3 ", GetCommandPrefix(caller), " 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");
+ print_to(caller, strcat("Examples: ", GetCommandPrefix(caller), " vote call gotomap dance"));
+ print_to(caller, strcat(" ", GetCommandPrefix(caller), " vote call endmatch"));
return;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(caller, "\nUsage:^3 vote master [action [command | password]]");
+ print_to(caller, strcat("\nUsage:^3 ", GetCommandPrefix(caller), " 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_to(caller, "\nUsage:^3 vote no");
+ print_to(caller, strcat("\nUsage:^3 ", GetCommandPrefix(caller), " vote no");
print_to(caller, " No arguments required.");
return;
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(caller, "\nUsage:^3 vote status");
+ print_to(caller, strcat("\nUsage:^3 ", GetCommandPrefix(caller), " vote status");
print_to(caller, " No arguments required.");
return;
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(caller, "\nUsage:^3 vote stop");
+ print_to(caller, strcat("\nUsage:^3 ", GetCommandPrefix(caller), " vote stop");
print_to(caller, " No arguments required.");
return;
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(caller, "\nUsage:^3 vote yes");
+ print_to(caller, strcat("\nUsage:^3 ", GetCommandPrefix(caller), " vote yes");
print_to(caller, " No arguments required.");
return;
}
default:
case CMD_REQUEST_USAGE:
{
- print_to(caller, "\nUsage:^3 vote ");
+ print_to(caller, strcat("\nUsage:^3 ", GetCommandPrefix(caller), " vote ");
print_to(caller, " No arguments required.");
return;
}