if(equali(Speech,"/com",4)) // Intercom Radio for MCPD and MCMD { if(!is_user_alive(id)) return PLUGIN_HANDLED get_user_name(id,name,sizeof(name)); replace(Speech,299,"/com","") trim(Speech) if( get_cvar_num( "rp_capscom" ) == 1 ) strtoupper(Speech) format(Speech,299,"^n(Intercom) %s: <%s>^n",name,Speech) remove_quotes(Speech) com_message(id,Speech) if( is_bugged(id) ) { if(!is_user_alive(id)) return PLUGIN_HANDLED new playerName[64]; get_user_name(id,playerName,63); new playerSpeech[300]; format(playerSpeech,299,"(Bug) %s: <%s>",playerName,Speech); bug_print(id,playerSpeech); } if( get_cvar_num( "rp_printconsole" ) == 1 ) server_print( Speech ) return PLUGIN_HANDLED } if(equali(Speech,"/911",4)) // Intercom Radio for MCPD and MCMD { if(!is_user_alive(id)) return PLUGIN_HANDLED replace(Speech,299,"/911","") trim(Speech) if( get_cvar_num( "rp_caps911" ) == 1 ) strtoupper(Speech) format(Speech,299,"^n[911] %s: <%s>^n",name,Speech) remove_quotes(Speech) emergency_message(id,Speech) if( is_bugged(id) ) { if(!is_user_alive(id)) return PLUGIN_HANDLED new playerName[64]; get_user_name(id,playerName,63); new playerSpeech[300]; format(playerSpeech,299,"(Bug) %s: <%s>",playerName,Speech); bug_print(id,playerSpeech); } if( get_cvar_num( "rp_printconsole" ) == 1 ) server_print( Speech ) return PLUGIN_HANDLED }