Plik rr.sma:
#include <amxmodx> // AMX Mod X #include <amxmisc> new czas = 60 new resety=3 new noze=0 new restart_title[1][] = { "Mitochondrium" } new misc[3][]={"misc/mito/one.wav","misc/mito/two.wav","misc/mito/three.wav"} new bylo_juz=0 public plugin_init() { register_plugin("ROund STart REstart","1.9","Miczu & Ox!d3") // Mi też się coś należy ;D register_event("HLTV","Event_StartRound","a","1=0","2=0") return PLUGIN_CONTINUE } public test_it(){ new players[32], num, num2 get_players(players,num,"e","TERRORIST") get_players(players,num2,"e","CT") if(num2<1 || num<1) return 0 return 1 } public client_disconnect(id){ set_task(0.3,"disconnect",0) } public disconnect(){ if(test_it()==0 && noze==0) bylo_juz=0 } public Event_StartRound(){ if(test_it()==0 && noze==0) bylo_juz=0 set_task(0.2,"restart_odlicz", 0) set_task(6.0,"restart_odlicz", 0) } public client_PreThink ( id ) { if(noze) client_cmd(id,"weapon_knife") } public restart_odlicz(){ if(test_it() && noze==0 && bylo_juz==0){ noze=1 bylo_juz=1 czas=60 resety=3 pause("ac","imessage.amxx") pause("ac","scrollmsg.amxx") pause("ac","spawnprotection.amxx") pause("ac","alt_end_round_sounds.amxx") pause("ac","ut_killstreak_adv.amxx") pause("ac","wynik.amxx") pause("ac","advanced_slowmo.amxx") set_task(3.0,"muza_on", 0) set_task(1.0,"wyswietl_res",8188,"",0,"b") } } public muza_on(){ client_cmd(0,"stopsound") client_cmd(0,"spk misc/mito/restart.wav") } public wyswietl_res(){ new jac1=random_num(0,255) new jac2=random_num(0,255) new jac3=random_num(0,255) set_hudmessage(jac1, jac2, jac3, 0.65, 0.75, 2, 0.02, 1.0, 0.01, 0.1, 10) show_hudmessage(0,"==================^n *%s *^n Restart za: %i sec^n==================", restart_title, czas) czas-- if(czas==3){ set_task(0.7,"restart_rundy_0", 0) } } public restart_rundy_play(){ set_hudmessage(10, 255, 40, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 4) show_hudmessage(0,"===================^n* LIVE *^n===================") } public restart_rundy(){ unpause("ac","imessage.amxx") unpause("ac","scrollmsg.amxx") unpause("ac","spawnprotection.amxx") unpause("ac","alt_end_round_sounds.amxx") unpause("ac","ut_killstreak_adv.amxx") unpause("ac","wynik.amxx") unpause("ac","advanced_slowmo.amxx") client_cmd(0,"stopsound") client_cmd(0,"spk misc/mito/restart/reset.wav") server_cmd("sv_restart 1") server_cmd("sv_restart 1") server_cmd("sv_restart 3") remove_task(8188) set_task(2.0,"restart_rundy_play", 0) } public restart_rundy_0(){ client_cmd(0,"stopsound") client_cmd(0,"spk %s",misc[resety-1]) resety-- if(resety==0){ noze=0 set_task(1.0,"restart_rundy", 0) } else set_task(1.2,"restart_rundy_0", 0) } public plugin_precache() { precache_sound("misc/mito/restart.wav") precache_sound("misc/mito/reset.wav") precache_sound(misc[0]) precache_sound(misc[1]) precache_sound(misc[2]) return PLUGIN_CONTINUE }
Plik bomba_explode_sound.sma:
/* Bomb Countdown HUD Timer v0.2 by SAMURAI * Plugin Details With this plugin enabled, you can see an colored Hud Message with the c4 time left, until explode Remeber : if until explode remains less than 8 seconds, hudmessage color will be red, if > 7 will be yellow and > 13 will be green. * Required Modules: - CSX * Credits: - Emp` for various indicates - Alka for full tests * Changelog - Fixed Events problems - Pcvars - Fixed any bug on plugin */ #include <amxmodx> #include <csx> #define PLUGIN "Bomb Countdown HUD Timer" #define VERSION "0.2" #define AUTHOR "SAMURAI" // // KONFIGURACJA TUTAJ // #define muzyczka "sound/misc/mito/bomba.wav" #define czas 12 // // new g_c4timer, pointnum; new bool:b_planted = false; new g_msgsync; public plugin_init() { register_plugin(PLUGIN,VERSION,AUTHOR); pointnum = get_cvar_pointer("mp_c4timer"); register_logevent("newRound", 2, "1=Round_Start"); register_logevent("endRound", 2, "1=Round_End"); register_logevent("endRound", 2, "1&Restart_Round_"); g_msgsync = CreateHudSyncObj(); } public newRound() { g_c4timer = -1; remove_task(652450); b_planted = false; } public endRound() { g_c4timer = -1; remove_task(652450); } public bomb_planted() { b_planted = true; g_c4timer = get_pcvar_num(pointnum); dispTime() set_task(1.0, "dispTime", 652450, "", 0, "b"); } public bomb_defused() { if(b_planted) { remove_task(652450); b_planted = false; } } public bomb_explode() { if(b_planted) { remove_task(652450); b_planted = false; } } public dispTime() { if(!b_planted) { remove_task(652450); return; } if(g_c4timer >= 0) { if(g_c4timer > 13) { set_hudmessage(0, 150, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1); } else if(g_c4timer > 7) { set_hudmessage(150, 150, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1); if(g_c4timer == czas) { client_cmd(0, "spk %s", muzyczka) } } else { set_hudmessage(150, 0, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1); } ShowSyncHudMsg(0, g_msgsync, "C4: %d", g_c4timer); --g_c4timer; } } public plugin_precache() { precache_sound("misc/mito/bomba.wav") return PLUGIN_CONTINUE }
Plik welcome.sma:
#include <amxmodx> #include <amxmisc> #define PLUGIN "Admin Welcome" #define VERSION "1.0" #define AUTHOR "Sn!ff3r" public plugin_init() register_plugin(PLUGIN, VERSION, AUTHOR) public client_putinserver(id) { if(is_user_admin(id)) { new name[32] get_user_name(id,name,31) set_hudmessage(0, 255, 0, 0.0, 0.3, 0, 6.0, 5.0) show_hudmessage(0, "Przychodzi admin!^n %s",name) client_cmd(0,"spk misc/mito/welcome.wav") } } public plugin_precache() precache_sound("misc/mito/welcome.wav")
Za zrobienie tego dam "Pomógł" (Nawet jak zrobisz tylko 1 i bedzie dzialal )