I'm trying to get this to respawn after a round is over
PHP Code:
public EventNewRound(id) {
new iEntity = g_max_players, Float:origin[3];
new block_type;
while ( (iEntity = engfunc(EngFunc_FindEntityByString, iEntity, "g_block_classname", "BCM_Block")) )
{
if ( block_type == PLATFORM)
{
pev(iEntity, pev_v_angle, origin);
set_pev(iEntity, pev_velocity, Float:{0.0, 0.0, 0.0});
engfunc(EngFunc_SetOrigin, iEntity, origin);
}
}
}
__________________