is this what you mean? if so it doesnt work, it says that i have immunity (which i do) then says amx_revive isnt a command
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "Revive"
#define VERSION "1.0"
#define AUTHOR "Demon"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_revive","revive_player", ADMIN_KICK, "Revive a player.")
}
public revive_player(id, level, cid)
{
if (!cmd_access(id, level, cid,2))
{
return PLUGIN_HANDLED
}
new Player[30]
new PlayerIndex
read_argv(1,Player,29)
PlayerIndex = cmd_target(id, Player)
if(!is_user_alive(PlayerIndex))
{
spawn(PlayerIndex)
return(PLUGIN_HANDLED)
}
return(PLUGIN_HANDLED)
}