AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   read player binds (https://forums.alliedmods.net/showthread.php?t=216625)

Balage74 05-23-2013 13:02

read player binds
 
Hello!

can I read player bindings? if yes, how?
need for me of my mute plugin.
idea:
if mute a player and he use voice bind, the server print hud message " You dont use this now" (or other e.g. reason, etc.)
anybody can help me?



(sorry for my english...)

Napoleon_be 05-23-2013 13:12

Re: read player binds
 
i don't know if it is possible, but if it is, the first thing i'd try it using get_user_info()

Balage74 05-24-2013 14:23

Re: read player binds
 
thx

akcaliberg 05-24-2013 17:16

Re: read player binds
 
You can't.
What do you mean by voice bind ? If you mean "+voicerecord" try this:

PHP Code:

new bool:voice_blocked[33];
public 
plugin_init() {
    
    
register_forward(FM_Voice_SetClientListening"FwdSetVoice"); 
}
public 
FwdSetVoice(receiversenderlisten) {   
    
    if( 
voice_blocked[id] ) {
        
engfunc(EngFunc_SetClientListeningreceiversender0);  
        return 
FMRES_SUPERCEDE;  
    }
    return 
FMRES_IGNORED  



Balage74 06-06-2013 06:33

Re: read player binds
 
thx, I need this:D


All times are GMT -4. The time now is 16:17.

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