po 10 wygranych rundach dla danej drużyny zmienia się mapa
mp_winlimit 10
mp_timelimit 0
2. Jest np. mapa de_tuscan i pod koniec mapy, nie ma vote o nową mape tylko atomatycznie sie sama mapa zmienia bez żadnego vote itp.
Wyłącz rotator map.
1.
http://amxx.pl/topic...ynik-vt3865.htm* jeśli wygra CT przed podłożeniem paki lub po jej rozbrojeniu to automatycznie zabija wszystkich TT
#include <amxmodx>
#define PLUGIN "Anti TeamPlay Slay"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
#define T 1
#define CT 2
new g_score[2];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("TeamScore","end_round","a");
register_event( "TextMsg", "Restore", "a", "2Game_will_restart_in" );
register_event("TextMsg", "Restore", "a", "2Game_C")
}
public Restore()
{
g_score[0]=0;
g_score[1]=0;
}
public end_round()
{
new teamname[3],score;
read_data(1,teamname,2);
score=read_data(2);
if(equal(teamname,"CT"))
{
if(g_score[CT-1]!=score)
{
slay(T);
}
g_score[CT-1]=score;
}
else
{
if(g_score[T-1]!=score)
{
slay(CT);
}
g_score[T-1]=score;
}
}
public slay(team)
{
new Players[32], playerCount;
get_players(Players, playerCount);
for (new i=0; i<playerCount; i++) {
new id = Players[i];
if(get_user_team(id)==team && is_user_alive(id))
{
user_kill(id)
client_print(id,print_chat,"!!! Wykonuj cele mapy !!!")
set_hudmessage(255, 0, 0, -1.0, 0.3, 0, 6.0, 5.0)
show_hudmessage(id, "!!! Wykonuj cele mapy !!!")
}
}
}