Raised This Month: $ Target: $400
 0% 

client_cmd help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 08-05-2008 , 23:16   client_cmd help
Reply With Quote #1

I need help with this command...
client_cmd(0, "spk %s", sounds[level]);

From my limited knowledge changing the 0 can change who hears the sound...
i dont remember wich is wich but 1= victim 2= client ????
I dont remember wich is wich i might have them backwards or something as well
but does anybody know what it should be example if i get a headshot on somebody only i want to hear it nobody else...
and if you knife somebody i want the other person to hear the humiliation and not me

those are the 2
Iv had it before but i forget wat i used...

help appreciated
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!
BioI-Iazard is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-05-2008 , 23:22   Re: client_cmd help
Reply With Quote #2

The first parameter is the client index.
When using 0, it acts as if it sends to the server, or everyone.
If you want to change to the victim, you will need that player's index.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 08-05-2008 , 23:24   Re: client_cmd help
Reply With Quote #3

im not sure but before when i had it
I altered only one number and that was the solution
im pretty sure it was this number
i could be wrong... :S
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!
BioI-Iazard is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 08-06-2008 , 00:02   Re: client_cmd help
Reply With Quote #4

set first param as 0 is just amxx's define
it will set up a loop from index 1 to maxclients and exec the cmd who is connected to the server
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang 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 05:30.


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