client_cmd help
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 |
Re: client_cmd help
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. |
Re: client_cmd help
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 |
Re: client_cmd help
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 |
| All times are GMT -4. The time now is 05:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.