For me that code means nothing, some other commands are sent automatically during the game such as VModEnable, specmode, spec_set_ad and client_buy_close.
Players are auto respawned if round time is less than 20 sec from round starts (or new round, whatever).
So what you want to do with this ?
What is "infinite" respawn ? triggers by a specific plugin ???
If you only want to prevent players from spawn outside of the new round spawns routine, just set spawn count player pdata to 1 when client_putinserver is sent.
PHP Code:
#include < amxmodx >
#include < fakemeta >
const m_iNumSpawns = 365;
public client_putinserver( id )
{
if( !is_user_bot(id) && !is_user_hltv(id) )
{
set_pdata_int(id, m_iNumSpawns, 1);
}
}
Or maybe you need this :
https://forums.alliedmods.net/showthread.php?t=191815
I've made a big mistake in that code so don't use it, just remind me to fix, if you need it.
Edit : Should be fixed
__________________