Supposed to work
amx_respawn <user>.
I keep getting the errors:
adminspawn.sma(13 -- 14) : error 033: array must be indexed (variable "respawn")
adminspawn.sma(17) : error 017: undefined symbol "spawn"
Please help?
Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init() {
register_plugin("AMX-respawn","0.1","Rustynails")
register_clcmd("amx_respawn","do_respawn",ADMIN_KICK)
}
public do_respawn(id,level,cid)
{
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new respawn[32], uid
respawn = read_argv(1,respawn,31)
uid = find_player("bhfl",respawn)
if (!uid) {
spawn(uid)
console_print(id,"[RESPAWN] Spawned successfully.")
} else {
console_print(id,"[RESPAWN] Could not find user.")
}
return PLUGIN_HANDLED
}