AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Do not display radio.spr (https://forums.alliedmods.net/showthread.php?t=245108)

baneado 07-28-2014 11:32

Do not display radio.spr
 
Hello, when someone uses microphone, a sprite appears above his head. I think the sprite is radio.spr, I don't know.

Well, it's simply, I don't want display it.

I've searched about a server cvar or plugins but I didn't found anything.

How can be done?

NikKOo31 07-28-2014 14:43

Re: Do not display radio.spr
 
I think it's client-side handled, can't be override

Mario AR. 07-28-2014 17:13

Re: Do not display radio.spr
 
https://wiki.alliedmods.net/Half-lif...vents#BotVoice
Try to play with that!

You can try to send a "BotVoice" message, write first byte 0, the second for the ID of the player who's speaking and you want to hide the sprite. Try to do that in the send voice forward.

Intenta enviar un message "BotVoice", el primer byte 0 y el segundo el id del jugador a quien le quieres sacar el sprite. Harķas esto en la forward de send voice de Fakemeta.

YamiKaitou 07-28-2014 17:47

Re: Do not display radio.spr
 
Quote:

Originally Posted by Mario AR. (Post 2175354)
https://wiki.alliedmods.net/Half-lif...ents#VoiceMask
Try to play with that!

Intenta enviar un message "BotVoice", el primer byte 0 y el segundo el id del jugador a quien le quieres sacar el sprite. Harķas esto en la forward de send voice de Fakemeta.

You must post in English, translate it

NikKOo31 07-28-2014 17:54

Re: Do not display radio.spr
 
He said something like this I guess

PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
    
register_forward(FM_Voice_SetClientListening"Forward_SetClientListening")
}

public 
Forward_SetClientListening(receiversenderbool:listen)
{
    if(!
is_user_connected(receiver) || !is_user_connected(sender) || receiver == sender)
        return 
FMRES_IGNORED

    message_begin
(MSG_ONEget_user_msgid("BotVoice"), _receiver )
    
write_byte(0)
    
write_byte(sender)
    
message_end()

    
/*message_begin(MSG_ONE, get_user_msgid("VoiceMask"), _, receiver )
    write_long(0)
    write_long(sender)
    message_end()*/
    
    
return FMRES_SUPERCEDE // (? not sure




All times are GMT -4. The time now is 13:12.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.