View Single Post
Re: Server crash on map change (I've search about this)
Old
  (#7)
xbatista
Member
 
Status: Offline
Posts: 11
Join Date: May 2009
Default Re: Server crash on map change (I've search about this) - 23-05-2009

Okey can this crash server?
PHP Code:
public respawn_player(id)
{
    
// Disconnected, already spawned, or switched to Spectator
    
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(idpev_deadflagDEAD_RESPAWNABLE)
    
dllfunc(DLLFunc_Thinkid)

    
// Fix for CZ Bots: DLLFunc_Think won't work on them,
    // but DLLFunc_Spawn does the job without any bugs.
    // (for some reason I'm not suprised...)
    
if (is_user_bot(id) && pev(idpev_deadflag) == DEAD_RESPAWNABLE)
    {
        
dllfunc(DLLFunc_Spawnid)
    }

  
Reply With Quote