Raised This Month: $51 Target: $400
 12% 

[REQ] Plugin Voice for team


Post New Thread Reply   
 
Thread Tools Display Modes
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 02-23-2020 , 15:36   Re: [REQ] Plugin Voice for team
Reply With Quote #11

Could you explain better, my server is complete, downloaded from steamcmd
alferd is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 02-25-2020 , 11:13   Re: [REQ] Plugin Voice for team
Reply With Quote #12

Quote:
Originally Posted by JocAnis View Post
@tarsisd2 it is from ReGameDLL so dont confuse people they must have reHLDS on the server -> https://github.com/s1lentq/ReGameDLL_CS/wiki/sv_alltalk

i think you want sv_alltalk 2, but better check yourself
I downloaded the file, and ran it on the server
When the player enters the server,The server turns off
alferd is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 02-25-2020 , 13:23   Re: [REQ] Plugin Voice for team
Reply With Quote #13

Quote:
Originally Posted by alferd View Post
I downloaded the file, and ran it on the server
When the player enters the server,The server turns off
because running reHLDS is not only ran a file, there is a lot of work, you can find places with all the steps if you want but you might be able to do that with the original server you have, did you try this plugin?

this one, have a look

https://forums.alliedmods.net/showpo...&postcount=116

PHP Code:
amx_vm_dead_t "ab"
amx_vm_alive_t "ab"
amx_vm_dead_ct "cd"
amx_vm_alive_ct "dc"
amx_vm_spec "abcde" 
tarsisd2 is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 02-26-2020 , 02:55   Re: [REQ] Plugin Voice for team
Reply With Quote #14

Quote:
Originally Posted by tarsisd2 View Post
because running reHLDS is not only ran a file, there is a lot of work, you can find places with all the steps if you want but you might be able to do that with the original server you have, did you try this plugin?

this one, have a look

https://forums.alliedmods.net/showpo...&postcount=116

PHP Code:
amx_vm_dead_t "ab"
amx_vm_alive_t "ab"
amx_vm_dead_ct "cd"
amx_vm_alive_ct "dc"
amx_vm_spec "abcde" 
Yes I tried,
But it didn't work
alferd is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 02-29-2020 , 05:19   Re: [REQ] Plugin Voice for team
Reply With Quote #15

Quote:
Originally Posted by alferd View Post
Yes I tried,
But it didn't work
you have to learn to provide more information if you want help, no one can guess what is wrong of you, error on compiling? not running on the server? what is wrong?

try this

PHP Code:
#include <amxmodx>
#include <fakemeta>

new sv_teamspeaksv_alltalk;
new const 
PLUGIN[] = "Teamspeak like CSGO";
new const 
VERSION[] = "1.0";
new const 
AUTOR[] = "Alliedmodders";

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTOR);
    
    
register_forward(FM_Voice_SetClientListening"forward_SetVoice"0);
    
    
sv_teamspeak register_cvar("sv_teamspeak""1");
    
sv_alltalk get_cvar_pointer("sv_alltalk");
    
    return 
PLUGIN_CONTINUE;
}

public 
plugin_cfg()
    
server_cmd("amx_pausecfg add ^"%s^""PLUGIN)

public 
forward_SetVoice(receiversenderbool:Listen)
{
    if( !
get_pcvar_num(sv_teamspeak) && !get_pcvar_num(sv_alltalk)
    || 
receiver == sender
    
|| !is_user_connected(receiver) || !is_user_connected(sender))
    {
        return 
FMRES_IGNORED;
    }

    if( 
get_user_team(receiver) == get_user_team(sender))
    {
        
engfunc(EngFunc_SetClientListeningreceiversender1);

        return 
FMRES_SUPERCEDE;
    }

    return 
FMRES_IGNORED;

tarsisd2 is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 03-02-2020 , 03:40   Re: [REQ] Plugin Voice for team
Reply With Quote #16

Quote:
Originally Posted by tarsisd2 View Post
you have to learn to provide more information if you want help, no one can guess what is wrong of you, error on compiling? not running on the server? what is wrong?

try this

PHP Code:
#include <amxmodx>
#include <fakemeta>

new sv_teamspeaksv_alltalk;
new const 
PLUGIN[] = "Teamspeak like CSGO";
new const 
VERSION[] = "1.0";
new const 
AUTOR[] = "Alliedmodders";

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTOR);
    
    
register_forward(FM_Voice_SetClientListening"forward_SetVoice"0);
    
    
sv_teamspeak register_cvar("sv_teamspeak""1");
    
sv_alltalk get_cvar_pointer("sv_alltalk");
    
    return 
PLUGIN_CONTINUE;
}

public 
plugin_cfg()
    
server_cmd("amx_pausecfg add ^"%s^""PLUGIN)

public 
forward_SetVoice(receiversenderbool:Listen)
{
    if( !
get_pcvar_num(sv_teamspeak) && !get_pcvar_num(sv_alltalk)
    || 
receiver == sender
    
|| !is_user_connected(receiver) || !is_user_connected(sender))
    {
        return 
FMRES_IGNORED;
    }

    if( 
get_user_team(receiver) == get_user_team(sender))
    {
        
engfunc(EngFunc_SetClientListeningreceiversender1);

        return 
FMRES_SUPERCEDE;
    }

    return 
FMRES_IGNORED;

Nothing works
It's still talking to everyone,
At the moment:
Code:
voice CT For All TER For All Spec For All Dead For All
The following code does not work:
Code:
sv_voiceenable 1 or 0 |not work
sv_alltalk 0 or 1 or 2 or 3 or 4 |not work
sv_voicequality 5 |not work
sv_voicecodec voice_speex |not work

Last edited by alferd; 03-02-2020 at 03:44.
alferd is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 03-02-2020 , 08:16   Re: [REQ] Plugin Voice for team
Reply With Quote #17

Quote:
Originally Posted by alferd View Post
Nothing works
It's still talking to everyone,
At the moment:
Code:
voice CT For All TER For All Spec For All Dead For All
The following code does not work:
Code:
sv_voiceenable 1 or 0 |not work
sv_alltalk 0 or 1 or 2 or 3 or 4 |not work
sv_voicequality 5 |not work
sv_voicecodec voice_speex |not work
You make it very hard to help you while you dont make much sense, i give up, try to learn more basic stuff before managing your own server
tarsisd2 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 23:38.


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