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

[Solved] Play a song


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
swapped
BANNED
Join Date: Mar 2014
Location: OrpheuRegisterHook
Old 05-07-2014 , 01:47   [Solved] Play a song
Reply With Quote #1

i wanna play a song ( all song ) after the player is levelup

What method is more easy and efficient ?

client_cmd( id, "spk .....

or

emit_sound ...

???

Last edited by swapped; 05-07-2014 at 04:27.
swapped is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-07-2014 , 03:51   Re: Play a song
Reply With Quote #2

They don't do the same thing. Based on your intention, I think you would want the former.
__________________
fysiks is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-07-2014 , 04:19   Re: Play a song
Reply With Quote #3

Just adding that spk only plays the sound to the player you send the command to, while emit_sound creates an ambient sound which everyone close to the player can hear too.
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
swapped
BANNED
Join Date: Mar 2014
Location: OrpheuRegisterHook
Old 05-07-2014 , 04:26   Re: Play a song
Reply With Quote #4

So i will use first method.

Thanks
swapped 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 11:45.


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