Raised This Month: $ Target: $400
 0% 

Simple sound chat (say)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ExodoX
Junior Member
Join Date: Oct 2011
Location: Argentina
Old 08-09-2017 , 22:50   Simple sound chat (say)
Reply With Quote #1

Hey everyone! i looking for a simple sound when you type anything on say (like CSGO)
if the player say something only for your team only the team hear the sound.

thx!
ExodoX is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 08-12-2017 , 16:34   Re: Simple sound chat (say)
Reply With Quote #2

try.
PHP Code:
#include <amxmodx>

new const szSound[] = "yoursound.wav"

public plugin_init() 
    
register_clcmd("say""cmd_Say")

public 
plugin_precache()
    
precache_sound(szSound)
    
public 
cmd_Say(id)
{
    new 
players[32], pnumUidx
    
    get_players
(playerspnum"e")
    
    for( 
0pnumx++)
    {
        
Uid players[x]
        
client_cmd(Uid"spk sound/%s"szSound)
    }

__________________

Last edited by Ayman Khaled; 08-12-2017 at 16:44.
Ayman Khaled is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 08-12-2017 , 21:42   Re: Simple sound chat (say)
Reply With Quote #3

i think you`re looking for something like this

sank sounds

https://forums.alliedmods.net/showthread.php?p=48677
tarsisd2 is offline
ExodoX
Junior Member
Join Date: Oct 2011
Location: Argentina
Old 08-14-2017 , 00:16   Re: Simple sound chat (say)
Reply With Quote #4

Quote:
Originally Posted by tarsisd2 View Post
i think you`re looking for something like this

sank sounds

https://forums.alliedmods.net/showthread.php?p=48677
Nono, only a sound when you typing anything in say...

Quote:
Originally Posted by Ayman Khaled View Post
try.
PHP Code:
#include <amxmodx>

new const szSound[] = "yoursound.wav"

public plugin_init() 
    
register_clcmd("say""cmd_Say")

public 
plugin_precache()
    
precache_sound(szSound)
    
public 
cmd_Say(id)
{
    new 
players[32], pnumUidx
    
    get_players
(playerspnum"e")
    
    for( 
0pnumx++)
    {
        
Uid players[x]
        
client_cmd(Uid"spk sound/%s"szSound)
    }

ty a lot! i will test it soon.

Last edited by ExodoX; 08-14-2017 at 00:17. Reason: Quote add
ExodoX is offline
ExodoX
Junior Member
Join Date: Oct 2011
Location: Argentina
Old 09-07-2017 , 23:42   Re: Simple sound chat (say)
Reply With Quote #5

I come back! ahaha, i see the code and I expressed wrong about when i say "if player say anything only your team hear the sound" .... i mean "when i use say_team only the team hear the sound" :p sry

i modified a little bit and i tested it this way

PHP Code:
#include <amxmodx>

new const szSound[] = "sayh.wav"

public plugin_init() {
register_clcmd("say""cmd_Say")
register_clcmd("say_team""cmd_SayTeam")
}

public 
plugin_precache()
precache_sound(szSound)

public 
cmd_Say()
{
/*new players[32], pnum, Uid, x

get_players(players, pnum, "e")

for( x = 0; x < pnum; x++)
{
Uid = players[x]
*/
client_cmd(0"spk sound/%s"szSound)
}

public 
cmd_SayTeam(id)
{
new 
players[32], pnumUidx

get_players
(playerspnum"e")

for( 
0pnumx++)
{
Uid players[x]
client_cmd(Uid"spk sound/%s"szSound)
}

I want to ask you if this modification will be working great (specifically on cmd_SayTeam)
For now, the say working fine but not tested on say_team...

Last edited by ExodoX; 09-08-2017 at 17:48.
ExodoX is offline
Old 09-08-2017, 02:32
Ayman Khaled
This message has been deleted by Ayman Khaled. Reason: nvm, my example is wrong.
Old 09-09-2017, 10:25
dalimnassar
This message has been deleted by dalimnassar.
dalimnassar
Member
Join Date: Aug 2017
Location: Tunisia
Old 09-09-2017 , 10:26   Re: Simple sound chat (say)
Reply With Quote #6

Quote:
Originally Posted by ExodoX View Post
Hey everyone! i looking for a simple sound when you type anything on say (like CSGO)
if the player say something only for your team only the team hear the sound.

thx!
this maybe ?
https://forums.alliedmods.net/showthread.php?p=48677
dalimnassar is offline
Send a message via Skype™ to dalimnassar
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 09-09-2017 , 11:27   Re: Simple sound chat (say)
Reply With Quote #7

Quote:
Originally Posted by dalimnassar View Post
read the Thread before posting
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 15:49.


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