Raised This Month: $ Target: $400
 0% 

client_cmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
geertjan88
Member
Join Date: May 2006
Old 12-05-2006 , 14:09   client_cmd
Reply With Quote #1

Code:
client_cmd(players[i],"speak ^"phone/beep^"")
client_print(players[i],print_chat,"Message 1 !^n")
client_print(players[i],print_chat,"Message 2 !^n")
when i use this code. It works for everyone in the server except for me.... :/. It does download the sound file from the server but it just doesn't play it. I double checked on other players and it does play the file for them but not for me. Also i do get the 2 two client_print print's but no sound.
__________________
if i help? +karma!
geertjan88 is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-05-2006 , 14:16   Re: client_cmd
Reply With Quote #2

Can't you use
Code:
client_cmd(players[i], "play phone/beep")
mateo10 is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-05-2006 , 14:27   Re: client_cmd
Reply With Quote #3

well the problem is obviously in the indexs held in the players[i]. if we cold see the rest of the code we can tell you why its not executing on you.
The Specialist is offline
Send a message via AIM to The Specialist
geertjan88
Member
Join Date: May 2006
Old 12-05-2006 , 14:28   Re: client_cmd
Reply With Quote #4

oke i am off to get some food now after that i will thanks in advance
__________________
if i help? +karma!
geertjan88 is offline
geertjan88
Member
Join Date: May 2006
Old 12-05-2006 , 16:14   Re: client_cmd
Reply With Quote #5

Quote:
Originally Posted by The Specialist View Post
well the problem is obviously in the indexs held in the players[i]. if we cold see the rest of the code we can tell you why its not executing on you.
No it's not couse it does show the 2 messages to me.
__________________
if i help? +karma!
geertjan88 is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 12-05-2006 , 16:23   Re: client_cmd
Reply With Quote #6

try this instead of the speak:

Code:
emit_sound(players[i], CHAN_AUTO, "phone/beep.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-05-2006 , 17:03   Re: client_cmd
Reply With Quote #7

well if the file he want to emit is wav then use emit_sound but emit_sound doesnt support mp3 . so if he wants to use an mp3 he has to use the speak.
The Specialist is offline
Send a message via AIM to The Specialist
dutchmeat
Senior Member
Join Date: Sep 2006
Old 12-05-2006 , 17:29   Re: client_cmd
Reply With Quote #8

true, or:
mp3 play ...
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 12-05-2006 , 18:03   Re: client_cmd
Reply With Quote #9

Correct me if I'm wrong, but I think the fact that he is an admin has to do with it. Does the immunity flag prevent client_cmd() from being executed on the client?

Too lazy to look at the client_cmd function at the moment.
stupok is offline
watch
Senior Member
Join Date: Sep 2005
Old 12-06-2006 , 05:28   Re: client_cmd
Reply With Quote #10

No^

Play, speak and spk all work the same afaik, add .wav to the end and see if it works.

client_cmd(0,"speak phone/beep.wav")

If its an mp3 use "mp3 play phone/beep.mp3"

Precaching a file or putting it in a .res file will mean clients download it
__________________
Code:
#include <amusing_small_signiture>

Last edited by watch; 12-06-2006 at 08:11.
watch 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 07:27.


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