Код за потвърждение: Избери целия код
#include <amxmodx>
#include <engine>
new const g_szModels[][] = { "*8", "*9" }
public plugin_init()
{
register_plugin("de_snipe_it5 Glass", "1.0", "OciXCrom")
register_logevent("make_unbreakable", 2, "0=World triggered", "1=Round_Start")
new szMap[32]
get_mapname(szMap, charsmax(szMap))
if(!equali(szMap, "de_snipe_it5"))
pause("ad")
make_unbreakable()
}
public make_unbreakable()
{
for(new iEnt, i; i < sizeof(g_szModels); i++)
{
iEnt = find_ent_by_model(-1, "func_breakable", g_szModels[i])
entity_set_float(iEnt, EV_FL_takedamage, 0.0)
}
}