Posiadam serwer OnlyDust2 i chciałbym na nim posiadac plugin, która za XX rund restartuję mapę.
Znalazłem kilka pluginów tego dotyczących mianowicie dd2_final, dd2, dd2_15 i nic. W każdym pluginie nie zmniejsza się ilość zagranych rund i cały czas jest napisane;
[DUST2] Restart mapy za 20 rund! - Liczba się nie zmniejsza!
Co rundę liczba rund do restartu mapy się nie zmniejsza i co chwile jest napisane, że 20 !!
Jak zrobić, aby prawidłowo to działało, a może jakiś inny podobny plugin, który na pewno działa?
Z góry dziękuje za pomoc ; )
Aktulanie posiadam taki plugin, który też nie działa;
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <colorchat> new tt, ct, plimit; public plugin_init() { register_plugin("DD2", "1.1", "byQQ"); register_event("HLTV", "event_RoundStart", "a", "1=0", "2=0") register_message(get_user_msgid("TextMsg"), "message_TextMsg"); plimit = register_cvar("rr_limit", "20"); } public message_TextMsg( const MsgId, const MsgDest, const MsgEntity ) { static message[32]; get_msg_arg_string(2, message, charsmax(message)); if(equal(message, "#Game_will_restart_in")) ct = tt = 0; else if(equal(message, "#Terrorists_Win") || equal(message, "#Target_Bombed")) tt++; else if(equal(message, "#CTs_Win")) ct++; } public event_RoundStart() { new limit = get_pcvar_num(plimit); new sumka = ct+tt; if(sumka >= limit) { set_cvar_num("sv_restart", 3); set_cvar_num("amx_reloadadmins", 1); if(tt > ct) ColorChat(0, RED, "[DUST 2]^x04 Wygrali Terrorysci %d/%d", tt, ct); else ColorChat(0, RED, "[DUST 2]^x04 Wygrali Anty Terrorysci %d/%d", ct, tt); ct = tt = 0; } else ColorChat(0, RED, "[DUST 2]^x04 Restart mapy za %d rund", limit - (ct+tt), (sumka > 1) ? ((sumka < 5) ? "dy" : "dy") : "d"); }
Użytkownik CheQ edytował ten post 19.12.2012 09:44
Usunięcie BBCODE