Quote:
Originally Posted by Aydeev
Why does this remove the entities for the remainder of the map? Since picked up weapons respawn each round I would have thought removing them would make them reappear again next round.
I want to remove all armoury_entity entities for round 1 only since we play a map that only gives the Terror team AKs and that gives them an unfair advantage in the first round
|
PHP Code:
new armouryEnt = -1
while((armouryEnt = find_ent_by_class(armouryEnt, "armoury_entity"))
{
set_pdata_int(armouryEnt, m_iCount, 0, XO_CArmoury);
set_pev(armouryEnt, pev_effects, pev(armouryEnt, pev_effects) | EF_NODRAW);
}
__________________