Hello all! I tried to make a simple respawn plugin with a say command using the Ham respawn method, and was told my code wasn't working. Will you all look at it?
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#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)
}
}
__________________