Simple.
Code:
#include <amxmodx>
#include <cstrike>
public plugin_init() {
register_clcmd("say /spawn" , "cmd_spawn");
}
public cmd_spawn(id) {
if(!is_user_alive(id)) {
set_task(0.1 , "spawn_user" , id);
}
return PLUGIN_HANDLED; // if you don't want other people to see the /spawn text in chat
}
public spawn_user(id) {
cs_user_spawn(id);
}
__________________