mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-08 11:01:33 +00:00
parent
01c376d3c2
commit
3d68256f0d
1 changed files with 6 additions and 1 deletions
|
@ -1012,7 +1012,7 @@ bool CHL2MP_Player::HandleCommand_JoinTeam( int team )
|
|||
{
|
||||
if ( !GetGlobalTeam( team ) || team == 0 )
|
||||
{
|
||||
ClientPrint( this, HUD_PRINTCONSOLE, "Please enter a valid team index\n" );
|
||||
Warning( "HandleCommand_JoinTeam( %d ) - invalid team index.\n", team );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1064,6 +1064,11 @@ bool CHL2MP_Player::ClientCommand( const CCommand &args )
|
|||
}
|
||||
else if ( FStrEq( args[0], "jointeam" ) )
|
||||
{
|
||||
if ( args.ArgC() < 2 )
|
||||
{
|
||||
Warning( "Player sent bad jointeam syntax\n" );
|
||||
}
|
||||
|
||||
if ( ShouldRunRateLimitedCommand( args ) )
|
||||
{
|
||||
int iTeam = atoi( args[1] );
|
||||
|
|
Loading…
Reference in a new issue