Raised This Month: $ Target: $400
 0% 

Respawn connected player.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 05-25-2009 , 13:42   Respawn connected player.
Reply With Quote #1

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(idpev_deadflagDEAD_RESPAWNABLE)
    
dllfunc(DLLFunc_Thinkid)

xbatista is offline
Send a message via Skype™ to xbatista
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode