Raised This Month: $ Target: $400
 0% 

Respawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Temptation
Member
Join Date: Jan 2010
Old 02-12-2010 , 07:31   Respawn
Reply With Quote #1

I've taken codes from here

I trying to make players respawn when they are late joined just like csdm but, didn't work.

PHP Code:
new g_iRespawnDelay
 
public plugin_init( )
{
    
register_event"DeathMsg""Death_Message""a" )
 
    
g_iRespawnDelay register_cvar"Respawn""5.0" )
}
 
public 
Respawn_Playerid )
{
    if ( !
is_user_connectedid ) || is_user_aliveid ) || cs_get_user_teamid ) == CS_TEAM_SPECTATOR )
        return;

    if ( !
is_user_aliveid ) && cs_get_user_teamid ) == CS_TEAM_T || CS_TEAM_CT )
    {    
        
set_pevidpev_deadflagDEAD_RESPAWNABLE )
        
dllfuncDLLFunc_Thinkid )
 
        if ( 
is_user_botid ) && pevidpev_deadflag ) == DEAD_RESPAWNABLE )
        {
            
dllfuncDLLFunc_Spawnid )
        }
    }
}
 
public 
Death_Message( )
{
    new 
id read_data)
    
set_taskget_pcvar_floatg_iRespawnDelay ), "Respawn_Player"id )

Temptation is offline
 



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 19:35.


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