Raised This Month: $ Target: $400
 0% 

Sounds Not Playing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Copper
Senior Member
Join Date: Feb 2012
Location: California
Old 04-21-2017 , 19:15   Sounds Not Playing
Reply With Quote #1

Code:
#include <amxmodx>

new T_Win[][] =
{
	"stealsounds/twin"
}

new I_Win[][] =
{
	"stealsounds/Iwin"
}

public plugin_init ( )
{
	register_plugin ( "New Steal C4", "1.0", "Copper" );
	register_event( "SendAudio", "eT_win" , "a", "2&%!MRAD_terwin" );
	register_event( "SendAudio", "eCT_win", "a", "2&%!MRAD_ctwin"  );
}

public eT_win(id)
{
	if(is_user_alive(id) && is_user_connected(id) )
	{
		client_cmd(0,"spk ^"%s^"",T_Win[random_num(0,sizeof T_Win - 1)])	
	}
}


public eCT_win(id)
{
	if(is_user_alive(id) && is_user_connected(id) )
	{				
		client_cmd(0,"spk ^"%s^"",I_Win[random_num(0,sizeof I_Win - 1)])		
	}
}

public plugin_precache( )
{
	precache_sound ( "stealsounds/Iwin.wav" );
	precache_sound ( "stealsounds/twin.wav" );
}
Can anyone tell me what I did wrong? I am editing the stealc4 plugin and I want to be able to play a sound after the round is over. I am not going to post the whole plugin because this is the only part that isn't working properly.

Last edited by Copper; 04-21-2017 at 20:22.
Copper is offline
 



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 17:56.


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