Death Sounds
3 Attachment(s)
Death Sounds by Drekes
Description: Plays a sound when you die. Uses a .ini file for sounds. Credits: Code:
Alarm: Requested plugin http://forums.alliedmods.net/showthread.php?t=153363 Code:
v1.0.0: Created plugin Code:
When a sound doesn't exist, it will be printed in the logs. |
Re: Death Sounds
Nice !
Tnx For Helping after me request |
Re: Death Sounds
No problem :)
|
Re: Death Sounds
Where shall we put Sounds File ?? :D
/cstrike/sounds ? /cstrike/sounds/misc ? /cstrike/sounds/loading ? Please Answer:D |
Re: Death Sounds
drekes i have the songs , and i added this lines to the death_sounds.ini in the configs folder:
misc/Mandala.wav misc/Lonely.wav misc/GoAndSay.wav when i connecting to the server it is downloading the songs to the folder but in game it is not working , i or no boddy heres it ... some thing to fix in this plugin ? |
Re: Death Sounds
@burc_ugur:
Doesn't matter where you put them, just make sure the paths in the file are right. @alarm: I've tested it and it worked fine, but i'll take another look at it. EDIT: Try typing 'spk "sound/misc/Mandala.wav" in your console and see if the sound plays. If not, the sounds probably are encoded wrong for cs. |
Re: Death Sounds
You should create the .ini file and add example in, then upload it on your thread for people who have a little problem, it will help them.
|
Re: Death Sounds
What's not to understand ?
Just put the path of the sound in the file, that's it. |
Re: Death Sounds
For you and me that's very easy, but for new guys who are trying to do their first AmxModX server, it can be a problem.
|
Re: Death Sounds
Okay, i'll do it
EDIT: Updated |
Re: Death Sounds
Great Job Drekes! This is very Fun to have in servers :D
|
Re: Death Sounds
I'm confused. Why would you do this:
PHP Code:
Code:
; sound/misc/example.mp3^n^n; Be sure to write sound/ when the file is a .mp3^n EDIT: Just realized it was because of the precache_generic() BUT you could just add "sound/" when precaching mp3s. This would make it more "user friendly". |
Re: Death Sounds
Quote:
EDIT: Done |
Re: Death Sounds
You musn't (don't have to ? w/e) pass 'sound/' in wav play cmd.
|
Re: Death Sounds
You should not register the event if no sounds were found from the parsing.
Also, I would suggest to format directly the sound with spk or mp3 play at parsing time before saving in the array, so you can use directly something like that : Code:
|
Re: Death Sounds
Quote:
Quote:
|
Re: Death Sounds
cool man
|
Re: Death Sounds
Also you should use formatex where applicable. :)
|
Re: Death Sounds
Quote:
This is the only format() i use: PHP Code:
|
Re: Death Sounds
Sorry, my fault. The idea of the plugin is good, but you should add more features.
|
Re: Death Sounds
Like what ?
|
Re: Death Sounds
Quote:
About extension, it is the way you check file type so you would have better to let it, anyway i think you don't need it in speak cmd but you need it in precache, so if it's easier for the code, let it everywhere would be a good solution. |
Re: Death Sounds
Now i'm kinda confused.
I do add sound/ in front of the .wav files, but when i precache them i use precache_sound(szData[6]); So it doesn't contain sound/ when it's precached. And for the spk command, it works with and without sound/ in front of it, so i don't think it really matters. I will update the code with Arkshine's suggestion. |
Re: Death Sounds
Hello. What needs to be done so that the sound of death can be heard by everyone on the server?
|
All times are GMT -4. The time now is 13:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.