diff options
author | Tim Angus <tim@ngus.net> | 2006-04-22 23:01:43 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2006-04-22 23:01:43 +0000 |
commit | 523411fb188b851ed46e72acfd9bd981abf432fc (patch) | |
tree | 3e957db85cb70f6e3cd4fd692847a7a561ecb6cc /src/game | |
parent | f559c2d486ce3bab66a4f1c0601e934ee841a317 (diff) |
* Fixed retarded exploitable "kick" command
* Removed ability to change the timelimit by vote
* Added sprint ability to human tutorial text
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_cmds.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 274f4a4a..875a922a 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -755,13 +755,11 @@ void Cmd_CallVote_f( gentity_t *ent ) else if( !Q_stricmp( arg1, "map" ) ) { } else if( !Q_stricmp( arg1, "kick" ) ) { } else if( !Q_stricmp( arg1, "clientkick" ) ) { } - else if( !Q_stricmp( arg1, "timelimit" ) ) { } else { trap_SendServerCommand( ent-g_entities, "print \"Invalid vote string\n\"" ); trap_SendServerCommand( ent-g_entities, "print \"Vote commands are: map_restart, nextmap, map <mapname>, " - "kick <player>, clientkick <clientnum>, " - "timelimit <time>\n\"" ); + "kick <player>, clientkick <clientnum>\n\"" ); return; } @@ -808,7 +806,8 @@ void Cmd_CallVote_f( gentity_t *ent ) Com_sprintf( level.voteDisplayString, sizeof( level.voteDisplayString ), "%s", level.voteString ); } - trap_SendServerCommand( -1, va( "print \"%s called a vote\n\"", ent->client->pers.netname ) ); + trap_SendServerCommand( -1, va( "print \"%s" S_COLOR_WHITE + " called a vote\n\"", ent->client->pers.netname ) ); // start the voting, the caller autoamtically votes yes level.voteTime = level.time; @@ -952,7 +951,8 @@ void Cmd_CallTeamVote_f( gentity_t *ent ) if( i >= level.maxclients ) { - trap_SendServerCommand( ent-g_entities, va( "print \"%s is not a valid player on your team\n\"", arg2 ) ); + trap_SendServerCommand( ent-g_entities, va( "print \"%s " + S_COLOR_WHITE "is not a valid player on your team\n\"", arg2 ) ); return; } } |