AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   Search a Voice Mod/Plugin (https://forums.alliedmods.net/showthread.php?t=334670)

romeo72 10-12-2021 12:16

Search a Voice Mod/Plugin
 
Hello, everyone.

I have a question. is there a cs 1.6 mod / plugin so that you can talk to everyone while playing and as soon as you are dead you can only talk to the dead? and the players who are still playing can talk to each other?

thank you ever for your help!

best regards

CrazY. 10-19-2021 09:07

Re: Search a Voice Mod/Plugin
 
If your server is regamedll, set sv_alltalk to 4. If not, set it to 1 and use this plugin

Code:

#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
        register_plugin("All Talk", "1.0", "Crazy")
        register_forward(FM_Voice_SetClientListening, "Voice_SetClientListening")
}

public Voice_SetClientListening(receiver, sender, bool:listen)
{
        if (is_user_alive(receiver) == is_user_alive(sender))
        {
                engfunc(EngFunc_SetClientListening, receiver, sender, true)
                forward_return(FMV_CELL, true)
        }
        else
        {
                engfunc(EngFunc_SetClientListening, receiver, sender, false)
                forward_return(FMV_CELL, false)
        }
       
        return FMRES_SUPERCEDE
}


romeo72 10-22-2021 11:42

Re: Search a Voice Mod/Plugin
 
hello CrazY.

once again you helped me with my problem !!
Thank you very much and it works perfectly!

best regards


All times are GMT -4. The time now is 01:55.

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