Wicho's code will respawn everybody as nemesis and survivor i think and that too it will be called only when a player connects to the server... Use this code and tell me if u have any problems... not tested :-
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <zp50_core>
#include <zp50_gamemodes>
#include <zp50_class_nemesis>
#include <zp50_class_survivor>
#define PLUGIN "Armageddon Mode Special respawn"
#define VERSION "1.0"
#define AUTHOR "Catastrophe"
#define RESP_DELAY 5.0
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Killed, "player", "fw_Killed")
}
public fw_Killed(victim, attacker, shouldgib)
{
if(!is_user_alive(attacker) || zp_gamemodes_get_current() != zp_gamemodes_get_id("Armageddon Mode"))
return
if(zp_class_survivor_get(victim))
{
set_task(RESP_DELAY, "do_resp1", victim)
}
if(zp_class_nemesis_get(victim))
{
set_task(RESP_DELAY, "do_resp2", victim)
}
}
public do_resp1(id)
{
if(!is_user_connected(id))
return
ExecuteHam(Ham_CS_RoundRespawn, id)
zp_class_survivor_set(id)
}
public do_resp2(id)
{
if(!is_user_connected(id))
return
ExecuteHam(Ham_CS_RoundRespawn, id)
zp_class_nemesis_set(id)
}
__________________