Raised This Month: $ Target: $400
 0% 

[Help] Round Sound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mikaeel123
Senior Member
Join Date: Oct 2018
Old 05-02-2020 , 12:14   [Help] Round Sound
Reply With Quote #1

Hello . i create a plugin round sound . but it doesnt work
PHP Code:
#include <amxmodx>

public plugin_init() 

  
register_plugin("RoundSound","1.0","PaintLancer")
  
register_event("SendAudio""t_win""a""2&%!MRAD_terwin")
  
register_event("SendAudio""ct_win""a""2&%!MRAD_ctwin")  
}

public 
t_win()
{
  new 
rand random_num(1,2)

  
client_cmd(0,"stopsound")

  switch(
rand)
  {
    case 
1client_cmd(0"spk %s""NG_Jail/RS/NG_1.mp3");
    case 
2client_cmd(0"spk %s""NG_Jail/RS/NG_1.mp3");
  }

  return 
PLUGIN_HANDLED
}

public 
ct_win()
{
  new 
rand random_num(1,2)

  
client_cmd(0,"stopsound")

  switch(
rand)
  {
    case 
1client_cmd(0"spk %s""NG_Jail/RS/NG_1.mp3");
    case 
2client_cmd(0"spk %s""NG_Jail/RS/NG_1.mp3");
  }

  return 
PLUGIN_HANDLED
}

public 
plugin_precache() 
{
  
precache_sound("NG_Jail/RS/NG_1.mp3")
  
precache_sound("NG_Jail/RS/NG_2.mp3")

  return 
PLUGIN_CONTINUE

And Here is the sounds
https://www.mediafire.com/file/8fayh..._Jail.zip/file
please tell me wants wrong ?
what my problem ?
Mikaeel123 is offline
 


Thread Tools
Display Modes

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:13.


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