add 3 commands on a key
Hey,
i have to add a .wav file to a plugin , on the attack2 key,but this key are used for another things. by click on attack2 a hudmessage willbe show & another command. now i dont know how can i add to this key a .wav file:( can anyone help me? i fund nothin in tuts :( thanks |
Re: add 3 commands on a key
Do you mean something like this?
Code:
|
Re: add 3 commands on a key
Hey,
Yeah.....Thanks. |
Re: add 3 commands on a key
PHP Code:
|
Re: add 3 commands on a key
I didn't actually used the full functions in my code. Those were just examples to give you the idea.
You must use an existing .wav file with emit_sound. http://www.amxmodx.org/doc/index.htm...emit_sound.htm You must set arguments in the set_hudmessage() native: http://www.amxmodx.org/funcwiki.php?...sage&go=search You must set who to show the message to and what type of a message to show in client_print(): http://www.amxmodx.org/funcwiki.php?...sage&go=search A more proper way will be something like: PHP Code:
|
Re: add 3 commands on a key
Hey,
thanks, the hud message & the command are added. i needed just the sound to add. ill try it . thanks |
Re: add 3 commands on a key
Hey,
ich tryed to add a sound to this but... :-( PHP Code:
i tryed with : PHP Code:
PHP Code:
|
Re: add 3 commands on a key
leave the precache like this
PHP Code:
PHP Code:
|
Re: add 3 commands on a key
Better yet, create a global constant variable:
PHP Code:
|
Re: add 3 commands on a key
Quote:
|
| All times are GMT -4. The time now is 09:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.