#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#pragma semicolon 1 //check out the semicolon
public plugin_init()
{
register_plugin("Respawn Command", "1.0", "[H]ARDBO[T]");
register_clcmd("say /respawn","WaitForRespawn"); //command only ct & not alive
}
public client_disconnect(id)
{
if(task_exists(id)) remove_task(id); //remove task
}
public WaitForRespawn(id)
{
set_task(0.1, "TaskRespawn", id); //wait 0.1 sec... for respawn...
}
public TaskRespawn(id)
{
if(!is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT)
{
ExecuteHamB(Ham_CS_RoundRespawn, id);
}
}
if it does not work check if the file modules.ini you have unlocked cstrike and hamsandwich module...