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

Help for sound play


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
made.tn
BANNED
Join Date: Nov 2011
Old 11-25-2011 , 14:58   Help for sound play
Reply With Quote #1

thanks for all who's help me
this is the script:

PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() 

    
register_plugin("round_end""1.0""made.tn")
    
register_logevent("RoundEnd",2,"1=Round_End")  


public 
RoundEnd() // id - no. This is global event. 

    
set_hudmessage(25500, -1.00.3503.01.21.31.44
    
show_hudmessage(0"the round is end"

now I'd like to help me to create this plugin

plugin1:
if the round end this sound will play in sound/csound/roundend.wav
plugin2:
HIT_HEAD sound/csound/headkill.wav
HIT_CHEST sound/csound/chestkill.wav
HIT_STOMACH sound/csound/stomachkill.wav

Only the script
Don't share the files


and thanks

Last edited by made.tn; 11-25-2011 at 15:03.
made.tn is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 11-25-2011 , 15:17   Re: Help for sound play
Reply With Quote #2

Added round end sound:
PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() 

    
register_plugin("round_end""1.0""made.tn")
    
register_logevent("RoundEnd",2,"1=Round_End")  


public 
RoundEndid // id - no. This is global event. 

    
set_hudmessage(25500, -1.00.3503.01.21.31.44) ;
    
show_hudmessage(0"the round is end");
    
client_cmd(0"spk csound/roundend.wav);
    return PLUGIN_HANDLED;

__________________
kiki33hun is offline
made.tn
BANNED
Join Date: Nov 2011
Old 11-25-2011 , 15:28   Re: Help for sound play
Reply With Quote #3

and this script

PHP Code:
public plugin_precache()
{        
    
precache_sound("csound/roundend.wav")    
    return 
PLUGIN_CONTINUE

It's nessasry or no ??

Last edited by made.tn; 11-25-2011 at 15:33.
made.tn is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 11-25-2011 , 16:18   Re: Help for sound play
Reply With Quote #4

Yes add code to plugin precache
__________________
kiki33hun is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 11-26-2011 , 04:30   Re: Help for sound play
Reply With Quote #5

Quote:
Originally Posted by kiki33hun View Post
Added round end sound:
PHP Code:
    client_cmd(0"spk csound/roundend.wav);
    return PLUGIN_HANDLED; 
You forgot a "

client_cmd(0, "spk csound/roundend.wav);

->

client_cmd(0, "spk csound/roundend.wav");
Devil259 is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 11-26-2011 , 04:43   Re: Help for sound play
Reply With Quote #6

Sry small bug
__________________
kiki33hun 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 05:36.


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