Jump to content
GIGN Forum

Amx Round Sound


Recommended Posts

Kā uzlikt endround sounds!!!

Atrodam \"roundsound\" atveram ar notepad...

Tur būs rakstīts

#include

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/around.wav\")

case 1: client_cmd(0,\"spk misc/bodymovin.wav\")

case 2: client_cmd(0,\"spk misc/faith.wav\")

}

return PLUGIN_CONTINUE

}

public ct_win()

{

new rand = random_num(0,2)

client_cmd(0,\"stopsound\")

switch(rand)

{

case 0: client_cmd(0,\"spk misc/myadidas.wav\")

case 1: client_cmd(0,\"spk misc/shimmy.wav\")

case 2: client_cmd(0,\"spk misc/rollin.wav\")

}

return PLUGIN_CONTINUE

}

public plugin_precache()

{

precache_sound(\"misc/myadidas.wav\")

precache_sound(\"misc/shimmy.wav\")

precache_sound(\"misc/rollin.wav\")

precache_sound(\"misc/around.wav\")

precache_sound(\"misc/bodymovin.wav\")

precache_sound(\"misc/faith.wav\")

return PLUGIN_CONTINUE

}

Pārlabojam : faith.wav,bodymovin.wav,around.wav,rollin.wav,shimmy.wav, u.t.t

Piemeram Es gribu ielikt dziesmu ar nosaukumu LoL, tā tad es pārlaboju

precache_sound(\"misc/faith.wav\") uz precache_sound(\"misc/LoL.wav\")

.wav beigās jābūt obligāti...^^

Visiem failiem ir jābūt wave formātā!!!!

Kad esam pārrakstījuši visus pa savam prātam,veram ciet un saglabājam...^^

Spiežam \"compile\" nu ...\\cstrike\\addons\\amxmodx\\scripting mapē ir fails \"compile\", SPIEZAM...Gaidam kad pabeidz!Tad spiežam enter...

Kad tas ir izdarīts spiežam uz mapes \"compilted\" nu ...\\cstrike\\addons\\amxmodx\\scripting\\compiled mapē, un atrodam tu failu \"roundsound\"...Ieliekam šo failu ...\\cstrike\\addons\\amxmodx\\plugins mapē!!!

Tālāk ejam uz ...\\cstrike\\addons\\amxmodx\\configs mapi, atrodam tur failu plugins.ini...Atveram ^^Un pievienojam apakša rindiņu \" roundsound.amxx \"

Tālāk saliekam visus failus ko jūs sarakstījāt .sma failā ...\\cstrike\\sound\\misc mapē!

Tas arī viss...

Seit driikst spam?

Copy Right @ Hicked.Hopto.Org Ownwd By IBEX... biggrin.gifbiggrin.gifbiggrin.gif

Edited by IBEX
Link to comment
Share on other sites

  • 1 month later...
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...