So I'm using Exolent Auto join on connect code
http://forums.alliedmods.net/showthread.php?p=610161
I've tryied to respawn player in join team event and tryied with client_putinserver, won't respawn, so how to respawn player when he connected?
Respawn code:
PHP Code:
public respawn_player(id)
{
// Disconnected, already spawned
if ( !is_user_connected(id) || is_user_alive(id) )
return;
// Try to spawn the player setting the appropiate dead flag and forcing a think
set_pev(id, pev_deadflag, DEAD_RESPAWNABLE)
dllfunc(DLLFunc_Think, id)
}