Offline |
|
|
Csatlakozott:2010.11.21. 18:04 Hozzászólások:557 Megköszönt másnak: 28 alkalommal Megköszönték neki: 74 alkalommal
|
ultraibolya írta: Tessék: #include <amxmodx> #include <amxmisc> #include <cstrike> new round public plugin_init() { register_plugin("Swap Teams","0.6","addam") register_dictionary("swapteams.txt") register_event("SendAudio","noveld","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw") } public noveld() { round++ if(round>=20){ set_task(0.1,"visszaszamol") } } public korvege() { client_print(0,print_chat,"%L",0,"SWAP_1"); set_task(1.0,"Event_Round_End"); } public Event_Round_End(){ set_cvar_num("mp_limitteams", 0) new CsTeams:team new Players[32] new playerCount, i, player get_players(Players, playerCount, "h") for (i=0; i<playerCount; i++) { player = Players[i] team=cs_get_user_team(player) if(team==CS_TEAM_CT)cs_set_user_team(player, CS_TEAM_T) else if(team==CS_TEAM_T)cs_set_user_team(player, CS_TEAM_CT) cs_reset_user_model(player) } set_cvar_num("mp_limitteams", 1) set_task(6.0,"rezetmodelsz"); } public rezetmodelsz() { new Players[32] new playerCount, i, player get_players(Players, playerCount, "h") for (i=0; i<playerCount; i++) { player = Players[i] cs_reset_user_model(player) } } public visszaszamol(id){ set_task(1.0,"tiz") set_task(2.0,"kilenc") set_task(3.0,"nyolc") set_task(4.0,"het") set_task(5.0,"hat") set_task(6.0,"ot") set_task(7.0,"negy") set_task(8.0,"harom") set_task(9.0,"ketto") set_task(10.0,"egy") } public tiz(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 12.0) show_hudmessage(id, "10") client_cmd(0,"stopsound") client_cmd(0,"spk mappaneve/10.wav") } public kilenc(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 12.0) show_hudmessage(id, "9") client_cmd(0,"spk mappaneve/9.wav") } public nyolc(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 1.0) show_hudmessage(id, "8") client_cmd(0,"spk mappaneve/8.wav") } public het(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 1.0) show_hudmessage(id, "7") client_cmd(0,"spk mappaneve/7.wav") } public hat(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 1.0) show_hudmessage(id, "6") client_cmd(0,"spk mappaneve/6.wav") } public ot(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 1.0) show_hudmessage(id, "5") client_cmd(0,"spk mappaneve/5.wav") } public negy(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 1.0) show_hudmessage(id, "4") client_cmd(0,"spk mappaneve/4.wav") } public harom(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 1.0) show_hudmessage(id, "3") client_cmd(0,"spk mappaneve/3.wav") } public ketto(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 1.0) show_hudmessage(id, "2") client_cmd(0,"spk mappaneve/2.wav") } public egy(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 1.0) show_hudmessage(id, "1") client_cmd(0,"spk mappaneve/1.wav") set_task(0.1,"korvege") }
#include <amxmodx> #include <amxmisc> #include <cstrike> new round public plugin_init() { register_plugin("Swap Teams","0.6","addam") register_dictionary("swapteams.txt") register_event("SendAudio","noveld","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw") } public plugin_precache() { precache_sound("mappaneve/1.wav") precache_sound("mappaneve/2.wav") precache_sound("mappaneve/3.wav") precache_sound("mappaneve/4.wav") precache_sound("mappaneve/5.wav") precache_sound("mappaneve/6.wav") precache_sound("mappaneve/7.wav") precache_sound("mappaneve/8.wav") precache_sound("mappaneve/9.wav") precache_sound("mappaneve/10.wav") } public noveld() { round++ if(round>=20){ set_task(0.1,"visszaszamol") } } public korvege() { client_print(0,print_chat,"%L",0,"SWAP_1"); set_task(1.0,"Event_Round_End"); } public Event_Round_End(){ set_cvar_num("mp_limitteams", 0) new CsTeams:team new Players[32] new playerCount, i, player get_players(Players, playerCount, "h") for (i=0; i<playerCount; i++) { player = Players[i] team=cs_get_user_team(player) if(team==CS_TEAM_CT)cs_set_user_team(player, CS_TEAM_T) else if(team==CS_TEAM_T)cs_set_user_team(player, CS_TEAM_CT) cs_reset_user_model(player) } set_cvar_num("mp_limitteams", 1) set_task(6.0,"rezetmodelsz"); } public rezetmodelsz() { new Players[32] new playerCount, i, player get_players(Players, playerCount, "h") for (i=0; i<playerCount; i++) { player = Players[i] cs_reset_user_model(player) } } public visszaszamol(id){ set_task(1.0,"tiz") set_task(2.0,"kilenc") set_task(3.0,"nyolc") set_task(4.0,"het") set_task(5.0,"hat") set_task(6.0,"ot") set_task(7.0,"negy") set_task(8.0,"harom") set_task(9.0,"ketto") set_task(10.0,"egy") } public tiz(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 12.0) show_hudmessage(id, "10") client_cmd(0,"stopsound") client_cmd(0,"spk mappaneve/10.wav") } public kilenc(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 12.0) show_hudmessage(id, "9") client_cmd(0,"spk mappaneve/9.wav") } public nyolc(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 1.0) show_hudmessage(id, "8") client_cmd(0,"spk mappaneve/8.wav") } public het(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 1.0) show_hudmessage(id, "7") client_cmd(0,"spk mappaneve/7.wav") } public hat(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 1.0) show_hudmessage(id, "6") client_cmd(0,"spk mappaneve/6.wav") } public ot(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 1.0) show_hudmessage(id, "5") client_cmd(0,"spk mappaneve/5.wav") } public negy(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 1.0) show_hudmessage(id, "4") client_cmd(0,"spk mappaneve/4.wav") } public harom(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 1.0) show_hudmessage(id, "3") client_cmd(0,"spk mappaneve/3.wav") } public ketto(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 1.0) show_hudmessage(id, "2") client_cmd(0,"spk mappaneve/2.wav") } public egy(id){ set_hudmessage(85, 85, 255, 0.27, 0.05, 0, 6.0, 1.0) show_hudmessage(id, "1") client_cmd(0,"spk mappaneve/1.wav") set_task(0.1,"korvege") }
|
|