diff options
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/g_cmds.c | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 8203454..25a9eab 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1636,6 +1636,14 @@ void Cmd_Channel_f( gentity_t *ent )    qboolean who = qfalse;    gentity_t *target; +  if( ent && ent->client->pers.teamSelection == PTE_NONE && +      g_scrimMode.integer != 0 && +      !G_admin_permission( ent, ADMF_NOSCRIMRESTRICTION ) ) +  { +    trap_SendServerCommand( ent-g_entities, "print \"You can't chat when scrim mode is enabled.\n\"" ); +    return; +  } +    if( g_floodMinTime.integer &&        G_Flood_Limited( ent ) )    {  | 
