03-09-2013, 05:56 PM
#include
#include
#include
new const PLUGIN[] = "Auto Respawn"
new const VERSION[] = "1.0"
new const AUTHOR[] = "platzpatrone"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam( Ham_Killed, "player", "RespawnPlayer" );
register_event("TextMsg","team_join","a","1=1","2&Game_join_te","2&Game_join_ct")
}
public RespawnPlayer(id)
{
if (get_user_team(id) == 3)
return PLUGIN_HANDLED
if (!is_user_alive(id))
{
ExecuteHamB(Ham_CS_RoundRespawn, id);
}
return PLUGIN_CONTINUE
}
set_task(12.0, "RespawnPlayer", id);
}
Download SMA/AMXX:
http://forums.allied...40&d=1128370062
http://www.amxmodx.o...cgi?file_id=240
#include
#include
new const PLUGIN[] = "Auto Respawn"
new const VERSION[] = "1.0"
new const AUTHOR[] = "platzpatrone"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam( Ham_Killed, "player", "RespawnPlayer" );
register_event("TextMsg","team_join","a","1=1","2&Game_join_te","2&Game_join_ct")
}
public RespawnPlayer(id)
{
if (get_user_team(id) == 3)
return PLUGIN_HANDLED
if (!is_user_alive(id))
{
ExecuteHamB(Ham_CS_RoundRespawn, id);
}
return PLUGIN_CONTINUE
}
set_task(12.0, "RespawnPlayer", id);
}
Download SMA/AMXX:
http://forums.allied...40&d=1128370062
http://www.amxmodx.o...cgi?file_id=240