Poradnik by JA
Do dzieła
Znajdź:
public NowaRunda()
i zmień to:
public NowaRunda()
{
freezetime = true;
new iEnt = find_ent_by_class(-1, "Mine");
while(iEnt > 0)
{
remove_entity(iEnt);
iEnt = find_ent_by_class(iEnt, "Mine");
}
}
na to:
public NowaRunda()
{
freezetime = true;
new iEnt = find_ent_by_class(-1, "Mine");
while(iEnt > 0)
{
remove_entity(iEnt);
iEnt = find_ent_by_class(iEnt, "Mine");
}
new iEnts = find_ent_by_class(-1, "Rocket");
while(iEnts > 0)
{
remove_entity(iEnts);
iEnts = find_ent_by_class(iEnts, "Rocket");
}
}
KONIEC
Jeśli ktoś używa czasowej blokady rakiety z tego tematu: http://amxx.pl/topic...blokada-rakiet/
to public NowaRunda() należy podmienić na ten:
public NowaRunda()
{
freezetime = true;
new iEnt = find_ent_by_class(-1, "Mine");
while(iEnt > 0)
{
remove_entity(iEnt);
iEnt = find_ent_by_class(iEnt, "Mine");
}
mozna = false;
{
set_task(12.0,"odblokuj",666)
ColorChat(0,RED,"Rakiety i dynamity zablokowane na 10 sekund !")
}
new iEnts = find_ent_by_class(-1, "Rocket");
while(iEnts > 0)
{
remove_entity(iEnts);
iEnts = find_ent_by_class(iEnts, "Rocket");
}
}