Well im trying to make another plugin in which you basically auto-respawn when you die...
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "AutoSpawn"
#define VERSION "1.0"
#define AUTHOR "Smarttart62"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_cvar("amx_autospawn","1");
register_event("Death","spawnMe","a");
}
public spawnMe(){
if (get_cvar_num("amx_autospawn")!=1){
return PLUGIN_HANDLED;
}
new players[32],num;
get_players(players,num);
new ii;
for (ii=0;ii<num;ii++)
{
if (!is_user_alive(ii)){
spawn(ii);
set_task(0.5,"respawn",ii);
}
}
return PLUGIN_CONTINUE;
}
public respawn(id){
spawn(id);
}
It just wont respawn though... And also the cvar keeps saying that it cant be set in a multiplayer game...
Thanks,
-Steve