Raised This Month: $ Target: $400
 0% 

Simple question [Still need help]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 06-21-2011 , 08:01   Simple question [Still need help]
Reply With Quote #1

I'm a noobie at amx plugins and i want to ask you all how to make a sound play when somthing happens like when you buy something on a plugin.
I would frefer to use simple modules.

Last edited by usaexelent; 06-21-2011 at 10:07.
usaexelent is offline
Send a message via Skype™ to usaexelent
Nyuszy
Senior Member
Join Date: Apr 2009
Old 06-21-2011 , 09:09   Re: Simple question
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?go=func&id=282
Nyuszy is offline
Old 06-21-2011, 09:31
usaexelent
This message has been deleted by usaexelent.
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 06-21-2011 , 09:43   Re: Simple question
Reply With Quote #4

Is there another way.
Or maybe you could give me example with the current one?

Last edited by usaexelent; 06-21-2011 at 09:47.
usaexelent is offline
Send a message via Skype™ to usaexelent
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 06-21-2011 , 10:25   Re: Simple question [Still need help]
Reply With Quote #5

You have a example of emit_sound() in that page there, including comments.
You'll also need to use precache_sound() on the sound to make players download it if they don't have it.

Still, emit_sound() emits a sound (duh) that all nearby players can hear.
If you want just a player to hear it, use client_cmd() like so:
Code:
client_cmd(id, "spk ^"path/sound.wav^"")
__________________
Hunter-Digital is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 06-21-2011 , 12:03   Re: Simple question [Still need help]
Reply With Quote #6

Could anybody tell me what client_cmd() has commands ?
And BTW thanks it works ;)
usaexelent is offline
Send a message via Skype™ to usaexelent
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-21-2011 , 12:09   Re: Simple question [Still need help]
Reply With Quote #7

http://www.amxmodx.org/funcwiki.php?go=func&id=230
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 06-21-2011 , 12:25   Re: Simple question [Still need help]
Reply With Quote #8

Yes i seen this page but it doesn't give me any command list or what it does.
usaexelent is offline
Send a message via Skype™ to usaexelent
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 06-21-2011 , 12:47   Re: Simple question [Still need help]
Reply With Quote #9

ffs client command, it makes the player execute a command. A console command ...
__________________
I am out of order!
grimvh2 is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 06-21-2011 , 15:21   Re: Simple question [Still need help]
Reply With Quote #10

Thanks i got it now, i didn't know that theres such thing as spk command.
usaexelent is offline
Send a message via Skype™ to usaexelent
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:31.


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