PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init ()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam ( Ham_Killed, "player", "fwd_Ham_Killed_post" )
//RegisterHam ( Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1 )
}
public fwd_Ham_Killed_post( id )
{
set_task( 2.0, "spawn" );
}
public spawn ( id )
{
if (!is_user_alive ( id ) && ( CS_TEAM_T <= cs_get_user_team( id ) <= CS_TEAM_CT ) )
{
ExecuteHamB ( Ham_CS_RoundRespawn , id )
}
}
Hello all

code modified.
L 01/18/2013 - 15:55:49: [CSTRIKE] Player out of range (0)
L 01/18/2013 - 15:55:49: [AMXX] Displaying debug trace (plugin "wmp.amxx")
L 01/18/2013 - 15:55:49: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 01/18/2013 - 15:55:49: [AMXX] [0] wmp.sma::spawn (line 54)
What's wrong ?
__________________