Raised This Month: $51 Target: $400
 12% 

kill sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
undead52
Senior Member
Join Date: Dec 2016
Old 10-20-2017 , 10:03   kill sound
Reply With Quote #1

sound dont play what is the problem ?
PHP Code:
#include <amxmodx>   
#include <amxmisc>  

#define PLUGIN "HitMark"  
#define VERSION "1.0"  
#define AUTHOR "Artorias"  


public plugin_init()   
{   
    
register_plugin("PLUGIN""PLUGIN""AUTHOR")   

    
register_event("DeathMsg""event_death""a""1>0")   
}   

public 
plugin_precache()   
{   
    
precache_sound("iSniper/hitmark.mp3")   
}   

public 
event_death()   
{   
        static 
iKilleriVictim   
           
        iKiller 
read_data(1)   
        
iVictim read_data(2)   
           
        if(
iKiller != iVictim

        
client_cmd(iKiller"spk iSniper/hitmark.mp3")  

undead52 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-20-2017 , 10:07   Re: kill sound
Reply With Quote #2

Use precache Generic. For mp3 sounds

Use this command for playing mp3 sounds...

client_cmd(id, "mp3 play director/sound.mp3")
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-20-2017 , 10:08   Re: kill sound
Reply With Quote #3

precache_sound => precache_generic
client_cmd => "mp3 play iSniper/hitmark.mp3"
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
undead52
Senior Member
Join Date: Dec 2016
Old 10-20-2017 , 11:14   Re: kill sound
Reply With Quote #4

i did it with .wav file but how can i make it more loud ?
undead52 is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 10-20-2017 , 11:25   Re: kill sound
Reply With Quote #5

Upload wav file to twisted wave editor online and use amplify option and then save file.
siriusmd99 is offline
undead52
Senior Member
Join Date: Dec 2016
Old 10-20-2017 , 11:48   Re: kill sound
Reply With Quote #6

ty
undead52 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode