Jump to content
GIGN Forum

Par Tiem Roundsound


Recommended Posts

tēma jau apspriesta ne vien reiz vien... roundsound.sma failā folderī scripting var samainīt skanjas uz savām.... mazliet papēti kur un kā jāraksta un sapratīsi... neaizmirsti skanjām jābūt wav formātā 8 bit un mono, priekš tā ir speciālas konvertēšanas programmas... blink.gif

Link to comment
Share on other sites

  • 2 weeks later...

Es tagad speciali prieks tevim pastastisu!

Vispirms ieliec tas dziesmas kuras gribi lai skan katra raunda beigas

C:\Program Files\Valve\cstrike\sound\misc

Tad nokaca roundsounds pluginu

Visas izmainas tiek veiktas scripting folderi

Un tajas vietas kur rakstits "tava dziesma" ieliec savas dziesmas nosaukumu

//RoundSound.amxx -by PaintLancer

#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(0,2)

client_cmd(0,"stopsound")

switch(rand)

{

case 0: client_cmd(0,"spk misc/tava dziesma 1")

case 1: client_cmd(0,"spk misc/Tava dziesma 2")

case 2: client_cmd(0,"spk misc/Tava dziesma 3")

}

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/Tava dziesma 4")

case 1: client_cmd(0,"spk misc/Tava dziesma 5")

case 2: client_cmd(0,"spk misc/Tava dziesma 6")

}

return PLUGIN_HANDLED

}

public plugin_precache()

{

precache_sound("misc/Tava dziesma 1.wav")

precache_sound("misc/Tava dziesma 2.wav")

precache_sound("misc/Tava dziesma 3.wav")

precache_sound("misc/Tava dziesma 4.wav")

precache_sound("misc/Tava dziesma 5.wav")

precache_sound("misc/Tava dziesma 6.wav")

return PLUGIN_CONTINUE

}

Pectam tu saglaba izmainas un uztaisi nocompile failu

To tu vari izdarit sava scriptings mape tur bus compile nospied to lidz visi faili nocompilejas un tad atver mapiti compiled un atrodi roundsounds Copy un paste Plugins folderi! Pectam ieej Configs plugins.ini un ieraksti roundsounds.amxx

Syo lieta darita RR serveri un viss ies!

Edited by Spr1te
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...