Quote:
Originally Posted by Natsheh
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#define TASK_RESPAWN 535204
public plugin_init(){
register_plugin("RESPAWN", "1.0", "instinctpt1");
RegisterHam(Ham_Spawn, "player", "Spawn", 1);
}
public Spawn(id)
{
if(task_exists(id + TASK_RESPAWN)) return;
set_task(1.0, "CheckDeads", id + TASK_RESPAWN, "", 0, "a", 5);
}
public CheckDeads(id)
{
id -= TASK_RESPAWN;
if(is_user_alive(id) || !is_user_connected(id)) return;
if( (1 <= get_user_team(id) <= 2) ) ExecuteHamB(Ham_CS_RoundRespawn,id);
}
|
I don't get it . Why not work?
sorry this code didn't work.
amx modx version 1.8.2 and 1.8.3 not working