kings1 Posted March 20, 2010 Report Share Posted March 20, 2010 man tads jautajums ka var serverim uzlikt piemeram kad sakas raunds lai skanetu (pick up your weapons and fight!) ka tādas reālas skanas var dabut plzz pasakat par uzliksanu pats domasu! Link to comment Share on other sites More sharing options...
ngEAr Posted March 20, 2010 Report Share Posted March 20, 2010 #include <amxmisc> new g_szSounds[][] = { "misc/sounda_nosaukums1.wav", "misc/sounda_nosaukums2.wav" } public plugin_precache() { for ( new i; i < sizeof g_szSounds; i++ ) { precache_sound( g_szSounds[ i ] ); } } public plugin_init() { register_plugin( "dziesma/skanja rounda sakuma", "0.1", "ngEAr" ); register_logevent( "roundstart", 2, "1=Round_Start" ); } public roundstart () { client_cmd( 0, "spk %s", g_szSounds[ random_num( 0, sizeof g_szSounds - 1 ) ] ); } Ieksh gzsounds vari ierakstit visus soundus un vinsh katra rounda pec randoma to laidis. Link to comment Share on other sites More sharing options...
Recommended Posts