Poniżej jest sma., plugin który pokazuje ile rund od zmiany mapy i, że nie da się podłożyć paki na B jeżeli jest mniej niż 5 w ct:
#include
#include
#include
#include
#include
#define PLUGIN "Restart po 20"
#define VERSION "1.0"
#define AUTHOR "ExBiT"
#define MAXBSNUM 10
new g_msg_statusicon
new BsList[MAXBSNUM], num
new runda = 0
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "Nowa_Runda", "a", "1=0", "2=0")
g_msg_statusicon = get_user_msgid("StatusIcon")
register_message(g_msg_statusicon, "Check_Icon")
set_task(1.0, "check_bs")
}
public Nowa_Runda()
{
runda++
new rund = 20 - runda
ColorChat(0, TEAM_COLOR, "^x01[^x03Strajk-Zone.eu^x01] Restart mapy za ^x04%d ^x01rund", rund)
if (runda >= 20)
{
set_task(1.5, "zmiana", _, _, _, "a", 1)
}
}
public zmiana()
{
set_cvar_num("sv_restartround", 1);
}
public check_bs()
{
num = 0
new ent = -1
while ((ent = find_ent_by_class(ent, "func_bomb_target")))
BsList[num++] = ent
}
public bomb_planting(id)
{
if (count_ct()
Proszę o usunięcie kawałka pluginu ( o rundach ile zostalo do konca i restart mapy.)
Użytkownik 'eXe' edytował ten post 26.11.2011 19:25