We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17237de commit ea8151aCopy full SHA for ea8151a
MTA10/mods/deathmatch/ClientCommands.cpp
@@ -767,7 +767,15 @@ void COMMAND_VoicePushToTalk ( const char* szCmdLine )
767
if ( g_pClientGame->GetVoiceRecorder()->IsEnabled() )
768
g_pClientGame->GetVoiceRecorder()-> UpdatePTTState ( atoi(szCmdLine) );
769
else
770
- g_pCore->GetConsole ()->Print ( "voiceptt: This server does not have voice enabled" );
+ {
771
+ // Show warning only once per server
772
+ static bool bDone = false;
773
+ if ( !bDone )
774
775
+ bDone = true;
776
+ g_pCore->GetConsole ()->Print ( "voiceptt: This server does not have voice enabled" );
777
+ }
778
779
}
780
781
void COMMAND_ServerInfo ( const char* szCmdLine )
0 commit comments