Blokowanie wyswietlania glosnika nad głową

Prosty plugin służący do blokady wyświetlania ikony glosnika nad głową podczas rozmowy przez mikrofon. Kod:
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
#include <amxmodx>
#include <fakemeta></fakemeta></amxmodx>
new msgIdBotVoice;
public plugin_init(){
msgIdBotVoice = get_user_msgid("BotVoice");
register_forward(FM_PlayerPreThink, "forward_prethink")
}
public forward_prethink(id){
if( !is_user_alive( id ) ){
return PLUGIN_CONTINUE;
}
message_begin(MSG_BROADCAST, msgIdBotVoice);
write_byte(0);
write_byte( id );
message_end();
return PLUGIN_CONTINUE;
}
#include <amxmodx> #include <fakemeta></fakemeta></amxmodx> new msgIdBotVoice; public plugin_init(){ msgIdBotVoice = get_user_msgid("BotVoice"); register_forward(FM_PlayerPreThink, "forward_prethink") } public forward_prethink(id){ if( !is_user_alive( id ) ){ return PLUGIN_CONTINUE; } message_begin(MSG_BROADCAST, msgIdBotVoice); write_byte(0); write_byte( id ); message_end(); return PLUGIN_CONTINUE; }
#include 
#include 

new msgIdBotVoice;

public plugin_init(){
msgIdBotVoice = get_user_msgid("BotVoice");

register_forward(FM_PlayerPreThink, "forward_prethink")
}

public forward_prethink(id){
if( !is_user_alive( id ) ){
return PLUGIN_CONTINUE;
}

message_begin(MSG_BROADCAST, msgIdBotVoice);
write_byte(0);
write_byte( id );
message_end();

return PLUGIN_CONTINUE;
}
Zadnych cvarow wrzucasz i działa. Download block.zip Download

3 komentarzy o “Blokowanie wyswietlania glosnika nad głową

  1. wysyłanie message_begin na każdym prethink to przypadkiem nie powoduje co chwile problemów reliable channel overflowed?

Dodaj komentarz

This site uses Akismet to reduce spam. Learn how your comment data is processed.