←  Pluginy

AMXX.pl: Support AMX Mod X i SourceMod

»

Modyfikacja
Przerobienie Auto Swap Teams

Zablokowany

pfkers - zdjęcie pfkers 14.03.2012

Witam... moze ktos przerobic ten plugin ze gdy zmienia druzyny zeby zmienial takze ich wynik..poniewaz gdy terro wygrywa 4:0 i sie przeniosa do ct to przegrywaja 0:4 ;/ nie przenosi wyniku.. moze ktos to poprawic

/*    Auto Swap Teams 1.2
* Made : #Kz.Tw | nobody
* Great Support : alan_el_more ; t0m3xxx ; crazyeffect
*
* What Plugins Can Do?
* Automatically change the teams of the round you set
* amx_half_rounds(def:8)
*/

#include <amxmodx>
#include <cstrike>
new enable, half_rounds, rounds_count
new TEAM_T[] = "Terrorist"
new TEAM_CT[] = "Counter-Terrorist"
public plugin_init()
{
register_plugin("Auto Swap Teams", "1.2", "#Kz.Tw | nobody & alan_el_more")
half_rounds = register_cvar("amx_half_rounds","3")
enable = register_cvar("swap_teams", "1")
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
register_event( "TextMsg", "Event_TextMsg", "a", "2&#Game_will_restart_in" );
register_event("TextMsg", "Event_TextMsg", "a", "2&#Game_C")
register_event("SendAudio", "event_round_end", "a", "2&%!MRAD_terwin", "2&%!MRAD_ctwin", "2&%!MRAD_rounddraw")

register_dictionary("Auto_Swap_Teams.txt")
}
public event_round_start()
{
if(get_pcvar_num(enable))
{
if(rounds_count == get_pcvar_num(half_rounds))
swap_teams()
}
}
public event_round_end()
rounds_count++
public Event_TextMsg()
rounds_count = 0
public swap_teams()
{
new CT[32],T[32]
new chCT, chT
new tround

set_hudmessage(0, 255, 0, -1.0, -1.0)
show_hudmessage(0, "* [AST] %L", LANG_PLAYER, "SWITCHING_TEAMS")
client_print(0,print_chat,"* [AST] %L", LANG_PLAYER, "SWITCHING_TEAMS")
tround = get_pcvar_num(half_rounds)*2
set_cvar_num("mp_maxrounds", tround)
get_players(CT,chCT,"e","CT")
get_players(T,chT,"e","TERRORIST")
for(new i = 0; i < chCT; i++)
{
cs_set_user_team(CT[i], CS_TEAM_T)
set_hudmessage(255, 0, 0, -1.0, 0.01)
show_hudmessage(0, "* [AST] %L", LANG_PLAYER, "NEW_TEAM", TEAM_T)
client_print(CT[i],print_chat,"* [AST] %L", LANG_PLAYER, "NEW_TEAM", TEAM_T);
}
for(new i = 0; i < chT; i++)
{
cs_set_user_team(T[i], CS_TEAM_CT)
set_hudmessage(0, 0, 255, -1.0, -1.0)
show_hudmessage(0, "* [AST] %L", LANG_PLAYER, "NEW_TEAM", TEAM_CT)
client_print(T[i], print_chat, "* [AST] %L", LANG_PLAYER, "NEW_TEAM", TEAM_CT);
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang2067\\ f0\\ fs16 \n\\ par }
*/
Odpowiedz

pfkers - zdjęcie pfkers 18.03.2012

// do zamkniecia
Odpowiedz

  • +
  • -
Ojciec Dyrektor - zdjęcie Ojciec Dyrektor 19.03.2012

Wiadomość wygenerowana automatycznie


Ten temat został zamknięty przez moderatora.

Powód: Temat zamknięty na prośbę użytkownika.


Z pozdrowieniami,
Zespół AMXX.PL
Odpowiedz
Zablokowany