Making weapons pickuple
I am using this code:
PHP Code:
new iEnt
while( (iEnt = find_ent_by_class(iEnt, "armoury_entity")) > 0 )
{
entity_set_int(iEnt, EV_INT_effects, entity_get_int(iEnt, EV_INT_effects) | EF_NODRAW)
entity_set_int(iEnt, EV_INT_solid, SOLID_NOT)
}
while( (iEnt = find_ent_by_class(iEnt, "weaponbox")) > 0 )
{
entity_set_int(iEnt, EV_INT_flags, FL_KILLME)
call_think(iEnt)
}
public WeaponBox_Spawn_Post( iEnt )
{
entity_set_int(iEnt, EV_INT_flags, FL_KILLME)
call_think(iEnt)
}
Well, this does remove the weapons from the ground. I would like to know how to make it, that it should appear again on roundstart + dropping the weapons from the alive players when those guns from the ground gets removed.
|