Edit (24-12-2013 10:10 PM) : Added mp3 version of this plugin with 1 additional cvar. Default sound file also attached. You can change the cvar to whatever mp3 file you want.
INSTALLATION
- Copy knifeitup.amxx or knifeitup_sound.amxx to addons/amxmodx/plugins folder.
- Edit addons/amxmodx/configs/plugins.ini and add knifeitup.amxx or knifeitup_sound.amxx in it on a new line.
- Restart the server or change the map for changes to take effect.
- The language file addons/amxmodx/data/lang/knifeitup.txt is automatically created the first time you run this plugin on your server.
- Edit the lang file according to your needs.
CVARS
- amx_knifeitup_health - Number of health to give the killer in case of a knife kill. Keep 0 to disable this feature.
- amx_knifeitup_frags - Number of frags to give the killer in case of a knife kill. Keep 0 to disable this feature.
- amx_knifeitup_mp3 "sound/knifeitup.mp3" - Location of the mp3 file to be played when knifed. (Works only for knifeitup_sound.amxx). Keep blank to disable.
Servers Using This Plugin
Note: If you get any problems with this plugin or find out any bugs in it, please use this page to report them back to me so that I can fix them.
NO sound cant be heared please help
ReplyDeletePlease verify if you have downloaded and installed only knifeitup_sound.amxx
DeleteAlso verify that amx_knifeitup_mp3 "sound/YOURMP3FILE.mp3" is added added in your amxx.cfg or server.cfg and that the sound file exists in your server directory.
If your sound file is in other format then use media.io to convert it to MP3 Format.
i also have same problm
DeleteSounds are not coming I placed file correctly and also the path is right
ReplyDeleteCopy that file to your local CS folder as on the server. Start the game and then try this command
Deletemp3 play /sound/knifeitup.mp3
Replace the path with your mp3 location. If you can hear the sound then install the same on the server. If not then something is wrong with your mp3. Convert it to mp3 128kbit/s using the converter website above.
Can i have the source of the plugin bro??
ReplyDeleteThe source snippet is in the AMX Mod X's default cstrike package. Open miscstats.sma and check the knife kill announcement part.
Deleteyeah..got it..:)
DeleteWhen i changed the name of the soundtrack from knifeitup (i wanted to use a diff track),
Deletethe hud message and the track stopped coming...(i added the line in amxx.cfg and server.cfg)..please help
Verify if you have the plugin correctly installed and you did not accidentally remove/rename it. I have tested the plugin with 6-7 different sounds and all are working fine. Also verify if you have correct mp3 format. Use media.io to convert it to necessary format if not.
Deleteyeah got that fixed..the prob was with the mp3 format...i chngd it to 128kbps and worked..
ReplyDelete..but another prob. came...now only i can hear the sound...others who are connecting to my svr isn't down;oading the mp3 file automatically..and hence can't hear the track..
If you change the cvar of the sound file then the new file download for players begins after the server restarts or the map changes.
DeleteReason: If I add the precache command to check the new file on every player connect then the plugin will eat up a lot of CPU unnecessarily. So to make the plugin light on resources the file is updated only after the map change or server restart.
DeleteRestarting didn't solve the problem although one or two downloaded the new file while map changing...but some others who are using the same cs version didn't ......:(
DeleteIf one or two downloaded the new file means that it is not a plugin issue. Try altering the file name so that the server forces everyone to re-download the sound file.
Deletetnx bro..!!!..worked..and gr8 job with the plugin!!!!!
DeleteThanks! Glad it worked out!
Deletefrag r not working an in cvar i wrote 2 frag and 50 hp helt but it gives +aoo hp not 50hp and no frag r coming help plZ ?????
ReplyDeleteamx_knifeitup_health 50
Deleteamx_knifeitup_frags 2
Add these cvars to your amxx.cfg and after that edit the addons/amxmodx/data/lang/knifeitup.txt with the values or words your like.
what is frag
DeleteFrag = Score/Kill Count.
DeleteWhere can I change the cvars permanently ? I can't find cvar in cpanel. plz help asap
ReplyDeleteYou have to add those cvars in your addons/amxmodx/configs/amxx.cfg so that they get executed after every map change.
DeleteI cannot get sound working
ReplyDeletei added amx_knifeitup_mp3 "sound/knifeitup.mp3" in amxx.cfg too
and also tried amx_Cvar amx_knifeitup_mp3 "sound/knifeitup.mp3" command on the server
It doesnt works and give this error
[AMXX] Unknown cvar: amx_knifeitup_mp
please help
If you are getting that error, it means that you have not installed the plugin properly.
DeleteThere is nothing wrong with the plugin. Make sure you have installed the plugin correctly. ATM more than 22 servers are using this plugin without any errors.
shaliwaha patil i have added sound the default it works and when it change the cvar of sound i want to change sound like /sound/misc/lol.mp3 it doesnt work
ReplyDeleteCheck your mp3 format. Convert to standard format using media.io website.
DeleteMake sure you have put the cvar in your amxx and that the cvar value is surrounded with double quotes.
can u give me .sma file
ReplyDeleteSorry I cannot.
DeleteBRO PLZ GIVE ME SMA FILE
DeleteBRO PLZ GIVE ME SMA FILE
Deletecan i add 3 sounds i t lays randomly
ReplyDeleteNope you cannot add that to this plugin.
DeleteBut if you want to make it yourself look for the sample source code in miscstats.sma and add an array of sounds and play randomly from the array.
If you don't know what I just said then you probably should not ask me more about it. Go directly to AM forums Plugin Request Section and post a request there.
can u give me the libk of am forums
ReplyDeletehttp://forums.alliedmods.net
DeleteHey admin need help . I want to add multiple sounds in knife it up . How to do that ?
ReplyDeleteI already answered it but I'm gonna do it once more -
DeleteNope you cannot add that to this plugin.
But if you want to make it yourself look for the sample source code in miscstats.sma and add an array of sounds and play randomly from the array.
If you don't know what I just said then you probably should not ask me more about it. Go directly to AM forums Plugin Request Section and post a request there.
prince got!t 2 !gfrags and!t 25HP!g for knifing shock
ReplyDeleteprince got!t 2 !gfrags and!t 25HP!g for knifing shock
two hud message coming please give me solution
Make sure that you do not install both the plugins together. Use only one.
Deleteknifeitup_sound.amxx or knifeitup.amxx
Both plugins do the same job, just sound plugin will play additional sound which is optional as not everyone wants sound.
Great Plugin ! Thanks Works Like Charm In My Server !
ReplyDeletethis plugin is working fine and i can hear sound when i join my hlds sv.... but when my friends are joining they cannot hear the sound...plz help
ReplyDeleteMake sure that the sound file is uploaded to the server. If correctly done then you should not face any problems as such.
Deletei am getting this error bro please help me
ReplyDeletePlayer got XX frags and XXHP for knifing Wil
it should show me like this way
Player got 2 frags and 25HP for knifing Wil
please help me
You need to edit the Lang file as per your settings. I did not hardcode the variables as it was not much flexible.
DeleteOpen addons/amxmodx/data/lang/knifeitup.txt and change the text accordingly.
NOT WORKING BAD LOAD ERROR
ReplyDeleteYou should re-download and try to install it again. I can use it just fine.
DeleteThis comment has been removed by a blog administrator.
ReplyDeletecan u tell me how can i put sound on knifeitup tell me step by step/ plzz bro ...
ReplyDeleteIs it possible to increase the volume of sound, it is a little low than the bullets and other sound...
ReplyDeleteI NEED LINK TO DOWNLOAD!!! PLZZ RECHECK U R LINK...AND IF IT IS MINE MOB. PROB THENN PLZ GIVE ME IN COMMENT
ReplyDelete