mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 12:32:09 +00:00
Cleaned up game server command usage messages.
This commit is contained in:
parent
b5acc31a4d
commit
a17dafc5e7
1 changed files with 7 additions and 2 deletions
|
@ -266,7 +266,7 @@ void Svcmd_AddIP_f (void)
|
||||||
char str[MAX_TOKEN_CHARS];
|
char str[MAX_TOKEN_CHARS];
|
||||||
|
|
||||||
if ( trap_Argc() < 2 ) {
|
if ( trap_Argc() < 2 ) {
|
||||||
G_Printf("Usage: addip <ip-mask>\n");
|
G_Printf("Usage: addip <ip-mask>\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -288,7 +288,7 @@ void Svcmd_RemoveIP_f (void)
|
||||||
char str[MAX_TOKEN_CHARS];
|
char str[MAX_TOKEN_CHARS];
|
||||||
|
|
||||||
if ( trap_Argc() < 2 ) {
|
if ( trap_Argc() < 2 ) {
|
||||||
G_Printf("Usage: sv removeip <ip-mask>\n");
|
G_Printf("Usage: removeip <ip-mask>\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -423,6 +423,11 @@ void Svcmd_ForceTeam_f( void ) {
|
||||||
gclient_t *cl;
|
gclient_t *cl;
|
||||||
char str[MAX_TOKEN_CHARS];
|
char str[MAX_TOKEN_CHARS];
|
||||||
|
|
||||||
|
if ( trap_Argc() < 3 ) {
|
||||||
|
G_Printf("Usage: forceteam <player> <team>\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// find the player
|
// find the player
|
||||||
trap_Argv( 1, str, sizeof( str ) );
|
trap_Argv( 1, str, sizeof( str ) );
|
||||||
cl = ClientForString( str );
|
cl = ClientForString( str );
|
||||||
|
|
Loading…
Reference in a new issue