Sound in plugins
if i wanted to add a sound to my plugin what would i do?
|
Re: Sound in plugins
http://www.amxmodx.org/funcwiki.php?go=func&id=282
Code:
|
Re: Sound in plugins
for .mp3:
Code:
|
Re: Sound in plugins
public precache() does not exist, it is public plugin_precache().
Or you call precache() inside of plugin_precache(), which makes no sence. |
Re: Sound in plugins
dude called a typo geez,
fixed |
Re: Sound in plugins
Ok, so where would i put this in my script?
Also everytime i do the command for the plugin i scripted will the sound play? How would i do that? is it possible, just say if when i do my command for my plugin, EX: amx_adminheal <target> <amount healed> and i wanted it to change the model of the target and (play the sound like you said above) when i use the command? Also, final question in this post, how do you add a model to the plugin? |
Re: Sound in plugins
ok,
(1) sound part if u used Code:
(2) for model change probably use: Code:
|
Re: Sound in plugins
where "id" is your target of course so change as neccisary (I know I cant spell)
|
Re: Sound in plugins
So
Quote:
Code: public plugin_precache(){ precache_sound("myfolder/mysound.wav") // = modfolder/sound/myfolder/mysound.wav // Note that some Sounds are precached by the Game already} public something(id){ emit_sound(id,4,"myfolder/mysound.wav",0.7,0.8,0,100) // Will play a Sound at the Origin of the Player with given ID. Use id 0 to play to everyone // OR client_cmd("play myfolder/mysound.wav") // Plays a Sound that only this client can hear. // You can use id 0 here, too, which is better than emit_sound with id 0, because this will have Mono effect.} and the Model part Quote:
Wel i will get back to you after school. :D Thnx. |
Re: Sound in plugins
Code:
|
| All times are GMT -4. The time now is 04:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.