Raised This Month: $ Target: $400
 0% 

PlaySound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 09-22-2011 , 13:16   PlaySound
Reply With Quote #1

create a plug-in to play a sound to all players happen to be running the server after say / play

After you do yourself say / play is the sound will play, other players will not play

What do I do?

Quote:
#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
register_plugin("PlaySound", "1.0", "PlaySound")
register_clcmd("say /play", "PlaySound")
}

public plugin_precache()
{
precache_sound("misc/sound.wav")
}

public PlaySound(id)
{
client_cmd(id, "speak misc/sound.wav")
}

Last edited by RuRuRu612754; 09-22-2011 at 13:28.
RuRuRu612754 is offline
 



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 19:40.


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