AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] Plugin (https://forums.alliedmods.net/showthread.php?t=134184)

sevrajol 08-01-2010 18:30

[REQ] Plugin
 
I user search button but i don`t find a plugin like that !I need a plugin for my server !When Terorists win the round to hear a sound and when Counter win the round to hear another sound !One sound for every team when the round is finish !I have two sounds twins.mp3 and ctwins.mp3 or wav you decide !Sorry for my english !

drekes 08-02-2010 01:21

Re: [REQ] Plugin
 
http://forums.alliedmods.net/showthr...und+end+sounds

sevrajol 08-02-2010 08:12

Re: [REQ] Plugin
 
I have this plugin
Quote:

//RoundSound.amxx -by PaintLancer

#include <amxmodx>

public plugin_init()
{
register_plugin("RoundSound","1.0","PaintLanc er")
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(0,2)

client_cmd(0,"stopsound")

switch(rand)
{
case 0: client_cmd(0,"spk misc/twinnar")
}

return PLUGIN_HANDLED
}

public ct_win()
{
new rand = random_num(0,2)

client_cmd(0,"stopsound")

switch(rand)
{
case 0: client_cmd(0,"spk misc/ctwinnar2")
}

return PLUGIN_HANDLED
}

public plugin_precache()
{
precache_sound("misc/ctwinnar2.wav")
precache_sound("misc/twinnar.wav")
return PLUGIN_CONTINUE
}

But after the round i don`t hear the sound :) why ?what i must to modify to this plugin ?


All times are GMT -4. The time now is 06:30.

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