Your code will work when player is not alive..
cstrike is not necessary..
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#define PLUGIN "Respawn"
#define VERSION "1.0"
#define AUTHOR "joshknifer"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say/respawn","CmdRespawn")
}
public CmdRespawn(id)
{
if (is_user_connected(id) && !is_user_alive(id))
{
ExecuteHamB(Ham_CS_RoundRespawn,id)
}
}
here is it without when user is alive
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#define PLUGIN "Respawn"
#define VERSION "1.0"
#define AUTHOR "joshknifer"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say/respawn","CmdRespawn")
}
public CmdRespawn(id)
{
if (is_user_connected(id))
{
ExecuteHamB(Ham_CS_RoundRespawn,id)
}
}