Raised This Month: $ Target: $400
 0% 

Do not display radio.spr


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 07-28-2014 , 11:32   Do not display radio.spr
Reply With Quote #1

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?
baneado is offline
NikKOo31
Senior Member
Join Date: May 2013
Location: Home
Old 07-28-2014 , 14:43   Re: Do not display radio.spr
Reply With Quote #2

I think it's client-side handled, can't be override
__________________
Hey ^_^
NikKOo31 is offline
Mario AR.
Senior Member
Join Date: May 2011
Location: Lima, Perú
Old 07-28-2014 , 17:13   Re: Do not display radio.spr
Reply With Quote #3

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.

Last edited by Mario AR.; 07-29-2014 at 01:43. Reason: English ._.
Mario AR. is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-28-2014 , 17:47   Re: Do not display radio.spr
Reply With Quote #4

Quote:
Originally Posted by Mario AR. View Post
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
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
NikKOo31
Senior Member
Join Date: May 2013
Location: Home
Old 07-28-2014 , 17:54   Re: Do not display radio.spr
Reply With Quote #5

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

__________________
Hey ^_^
NikKOo31 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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