exec hud msg and sound via cmd
the message should be displayed along with the sound after a command to be executed by the server.
to display the message is easy, just do not know how to run the sound and call the plugin via a command on the server Ex: Hello, good game! exec sound: hello. |
Re: exec hud msg and sound via cmd
What is this sound? Is it a custom sound file (wave format), HL Voice Synthesiser or something else?
|
Re: exec hud msg and sound via cmd
Well there are two ways :
client_cmd(id,"speak hello") which will just use CS SOUNDS "http://www.adminmod.org/help/online/...ife_Sounds.htm" A list of all sounds default of cs. or Precache the sound, add the : client_cmd(id,"mp3 play sound\backstats\song1.mp3" -> .mp3 format :) Do not forget to upload the song to server :) To run an plugin well, i just know one thing, you can an register command, on the plugin you want to run, than on other plugin just use client_cmd(id,"backstats") but u have to add this on the plugin u want to run :register_clcmd("backstats","Function") Hope i didn't confused you and helped you much :) Regards EDITED : ALSO THERE'S ANOTHER WAY !! You can reproduce the song without using mp3 play, i don't know how, but is possible i saw that, maybe someone can answer you about this i said on this little 2 lines. |
Re: exec hud msg and sound via cmd
Plugin you want to run :
register_clcmd("something","goFuNCtion") register_clcmd("blackstats","goFuNCtion") Plugin which do u want call the "First one" : client_cmd(id,"something") or client_cmd(id,"backstats") Sorry for double post :P |
Re: exec hud msg and sound via cmd
would look like?
PHP Code:
|
Re: exec hud msg and sound via cmd
[Automatic Hello :]
Code:
public client_putinserver(id) Code:
#define CVAR1 ADMIN_CVAR |
Re: exec hud msg and sound via cmd
I just need it to appear on the screen when the command is executed, and not automatic.
|
Re: exec hud msg and sound via cmd
was only the remove:
PHP Code:
great. |
Re: exec hud msg and sound via cmd
U need include <amxmodx>.
for all this works... |
Re: exec hud msg and sound via cmd
i have the errors:
Code:
hellosv.sma(15) : error 017: undefined symbol "id" |
| All times are GMT -4. The time now is 02:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.