Raised This Month: $ Target: $400
 0% 

3x Respawn Code HELP


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 02-23-2009 , 08:09   Re: 3x Respawn Code HELP
Reply With Quote #3

Ok i have this :

PHP Code:
new const VERSION[] =    "1.1"

#include <amxmodx>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#define DISABLE_CS 0

// team ids 
#define UNASSIGNED 0 
#define TS 0 
#define CTS 3 
#define AUTO_TEAM 5 



public plugin_init(){

    
register_plugin("Respawn Forever"VERSION"Pimp Daddy (OoTOAoO)")

    
register_event("DeathMsg","on_Death","a")
    
    
register_cvar("sv_checkpistols""1")
    
register_cvar("sv_respawn""1")
    
register_cvar("respawn_forever_version"VERSIONFCVAR_SERVER)

    
register_clcmd("say","on_Chat")
    
register_clcmd("say_team","on_Chat")
}



public 
on_Death()
{
    if ( !
get_cvar_num("sv_respawn") )
        return 
PLUGIN_CONTINUE
    
    
new victim_id read_data(2)
    
    
set_task(0.1"Respawn"victim_id__"a"3);
 
    return 
PLUGIN_CONTINUE
}




public 
player_spawn(parm[1])
{
    
spawn(parm[0])
}  
public 
Respawn(Client)
        
ExecuteHamB(Ham_CS_RoundRespawnClient); 
but i can respawn 234234234234234234 times
where am i wrong ?
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
 



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 17:08.


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