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

Play Sound - spk vs emit_sound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
asdian
Member
Join Date: Sep 2016
Location: Indonesia
Old 02-09-2023 , 19:44   Play Sound - spk vs emit_sound
Reply With Quote #1

i'm creating character vox sounds with multi-language support. thus the file directory goes like this:

Code:
sound\vox\sc\buffclass22s4ct\character\win1.wav
where "sc" stands for "simplified chinese"

i want to use client_cmd(id, "spk %s", sound) because it can 'stack' with other sounds simultaneously but it won't work (edit* no sound/won't play). using emit_sound() does works (edit* play just fine) but in my understanding it can't 'stack' with other sounds that have same channel. i don't want to relocate all the files because lazy, it has like 30-ish characters with 4 different languages each.

what's the different between the two? is client_cmd(id, "spk %s", sound) have directory limitation?

i'm using amxmodx 1.8.10

thanks in advance!

Last edited by asdian; 02-11-2023 at 05:45. Reason: unclear statement
asdian 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 07:23.


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