Raised This Month: $344 Target: $400
 86%   Almost there!

TeamTalk


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FelixMobin
Junior Member
Join Date: May 2020
Old 05-13-2020 , 19:43   TeamTalk
Reply With Quote #1

Hello Guys Im Looking a plugin with this abilites
when a admin say in chat /t2 server will be teamtalk i mean terrorist can talk with her teammates when admin say /t1 will be alltalk and /t0 disable sv_alltalk
can anyone help me in teamtalk? i cant find plugin for solve this problem

and i want a /knf for a knife duel in server please♡
Thanks

Last edited by FelixMobin; 05-13-2020 at 19:45.
FelixMobin is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 05-14-2020 , 02:54   Re: TeamTalk
Reply With Quote #2

sv_alltalk 0 = dead don't hear alive
sv_alltalk 1 = no restrictions
sv_alltalk 2 = teammates hear each other
sv_alltalk 3 = same as 2, but spectators hear everybody
sv_alltalk 4 = alive hear alive, dead hear dead and alive.
alferd is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 05-14-2020 , 02:56   Re: TeamTalk
Reply With Quote #3

Quote:
Originally Posted by FelixMobin View Post
and i want a /knf for a knife duel in server please♡
Thanks
It is better to search or send a new post
alferd is offline
lantimilan
Senior Member
Join Date: May 2016
Location: KOSOVA
Old 05-14-2020 , 03:26   Re: TeamTalk
Reply With Quote #4

Quote:
Originally Posted by alferd View Post
It is better to search or send a new post
Maybe he using prefix and some prefix not allow to working good chat, i have this problem in my server sometimes when i add chat menager ocixcrom working good , its my opinion maybe this is mistake
lantimilan is offline
Send a message via MSN to lantimilan
Mikaeel123
Senior Member
Join Date: Oct 2018
Old 05-14-2020 , 04:30   Re: TeamTalk
Reply With Quote #5

Here You go
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <cstrike>
#include <colorchat>

#define PLUGIN    "Talk"
#define VERSION    "1"
#define AUTHOR    "Thew_ConFIger"
#define ACCESS ADMIN_CVAR

new g_pCvarchname
new g_pCvarNoSay
new block

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
g_pCvarchname register_cvar("sv_noname""0")
    
register_forward(FM_ClientUserInfoChanged"ClientUserInfoChanged")
    

    
    
register_clcmd("say /t0","talk",ACCESS)
    
register_clcmd("say /t1","ontalk",ACCESS)
    
register_clcmd("say /t2","offtalk",ACCESS)

public 
talk(idlevelcid

    if(
cmd_access(id,levelcid1)) 
    { 
        new 
name[32
        
get_user_info(id"name"name31
        
server_cmd("sv_alltalk 0"); 
        
ColorChat(0BLUE,"%s: /t0",name
    } 
    return 
PLUGIN_HANDLED 

public 
ontalk(idlevelcid

    if(
cmd_access(id,levelcid1)) 
    { 
        new 
name[32
        
get_user_info(id"name"name31
        
server_cmd("sv_alltalk 1"); 
        
ColorChat(0BLUE,"%s: /t1",name
    } 
    return 
PLUGIN_HANDLED 

public 
offtalk(idlevelcid

    if(
cmd_access(id,levelcid1)) 
    { 
        new 
name[32
        
get_user_info(id"name"name31
        
server_cmd("sv_alltalk 2"); 
        
ColorChat(0BLUE,"%s: /t2",name
    } 
    return 
PLUGIN_HANDLED 

and this for /knf
https://forums.alliedmods.net/showthread.php?t=106338
Mikaeel123 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-14-2020 , 07:33   Re: TeamTalk
Reply With Quote #6

Quote:
Originally Posted by alferd View Post
sv_alltalk 0 = dead don't hear alive
sv_alltalk 1 = no restrictions
sv_alltalk 2 = teammates hear each other
sv_alltalk 3 = same as 2, but spectators hear everybody
sv_alltalk 4 = alive hear alive, dead hear dead and alive.
Those values don't exist in the default game. Only 0/1 do.

Quote:
Originally Posted by Mikaeel123 View Post
Here You go
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <cstrike>
#include <colorchat>

#define PLUGIN    "Talk"
#define VERSION    "1"
#define AUTHOR    "Thew_ConFIger"
#define ACCESS ADMIN_CVAR

new g_pCvarchname
new g_pCvarNoSay
new block

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
g_pCvarchname register_cvar("sv_noname""0")
    
register_forward(FM_ClientUserInfoChanged"ClientUserInfoChanged")
    

    
    
register_clcmd("say /t0","talk",ACCESS)
    
register_clcmd("say /t1","ontalk",ACCESS)
    
register_clcmd("say /t2","offtalk",ACCESS)

public 
talk(idlevelcid

    if(
cmd_access(id,levelcid1)) 
    { 
        new 
name[32
        
get_user_info(id"name"name31
        
server_cmd("sv_alltalk 0"); 
        
ColorChat(0BLUE,"%s: /t0",name
    } 
    return 
PLUGIN_HANDLED 

public 
ontalk(idlevelcid

    if(
cmd_access(id,levelcid1)) 
    { 
        new 
name[32
        
get_user_info(id"name"name31
        
server_cmd("sv_alltalk 1"); 
        
ColorChat(0BLUE,"%s: /t1",name
    } 
    return 
PLUGIN_HANDLED 

public 
offtalk(idlevelcid

    if(
cmd_access(id,levelcid1)) 
    { 
        new 
name[32
        
get_user_info(id"name"name31
        
server_cmd("sv_alltalk 2"); 
        
ColorChat(0BLUE,"%s: /t2",name
    } 
    return 
PLUGIN_HANDLED 

and this for /knf
https://forums.alliedmods.net/showthread.php?t=106338
Apart from the bad code, the plugin is not going to work because you registered a forward without registering its callback function.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 05-14-2020 , 13:31   Re: TeamTalk
Reply With Quote #7

Quote:
Originally Posted by alferd View Post
sv_alltalk 0 = dead don't hear alive
sv_alltalk 1 = no restrictions
sv_alltalk 2 = teammates hear each other
sv_alltalk 3 = same as 2, but spectators hear everybody
sv_alltalk 4 = alive hear alive, dead hear dead and alive.
this will only work if he has regame and rehlds!

if not

look at this

Quote:
Originally Posted by ConnorMcLeod View Post
If someone want to test new version (amxx 1.8.3 required !!!)

Here are new cvars and settings :

Settings (flags) :
a : hear dead terrorists
b : hear alive terrorists
c : hear dead cts
d : hear alive cts
e : hear specs

amx_vm_dead_t : which category can be heared by dead terrorists
amx_vm_alive_t : which category can be heared by alive terrorists
amx_vm_dead_ct : which category can be heared by dead counter-terrorists
amx_vm_alive_ct : which category can be heared by alive counter-terrorists
amx_vm_spec : which category can be heared by spectators


Example :
Alives can hear alives and dead/spectators can hear everyone (for public servers for example) :
Code:
amx_vm_dead_t "abcde"
amx_vm_alive_t "bd"
amx_vm_dead_ct "abcde"
amx_vm_alive_ct "bd"
amx_vm_spec "abcde"

Ts can hear Ts, CTs can hear CTs, Spec can hear everybody (for example for scrims) :
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"
Alltalk 1 (useless to use plugin)
Code:
amx_vm_dead_t "abcde"
amx_vm_alive_t "abcde"
amx_vm_dead_ct "abcde"
amx_vm_alive_ct "abdce"
amx_vm_spec "abcde"
Alltalk 0 (useless to use plugin)
Code:
amx_vm_dead_t "a"
amx_vm_alive_t "b"
amx_vm_dead_ct "c"
amx_vm_alive_ct "d"
amx_vm_spec "e"

AMXX 1.8.3 REQUIRED !!!
https://forums.alliedmods.net/showpo...&postcount=116
tarsisd2 is offline
Reply


Thread Tools
Display Modes

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 05:04.


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