And for Zombie Plague Shade:
For Assassin and Sniper just go in the files and change this:
Code:
#include <zombie_plague_advance>
to:
Code:
#include <zombieplague>
Here is the code for Bombardier mode!
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>
#define PLUGIN_NAME "[ZP] Bombardier Health Reminder"
#define PLUGIN_VERS "1.0"
#define PLUGIN_AUTH "zmd94"
#define TASK_HEALTH 5000
#define HOLD_TIME 4.0
const Float:HUD_MODE_X = -1.0
const Float:HUD_MODE_Y = 0.20
const Float:START_TIME = 3.0
new g_SyncHud
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERS, PLUGIN_AUTH)
// Fwd's
RegisterHam(Ham_Spawn, "player", "Fwd_PlayerSpawn_Post", 1)
RegisterHam(Ham_Killed, "player", "Fwd_PlayerKilled_Pre", 0)
g_SyncHud = CreateHudSyncObj()
}
public Fwd_PlayerSpawn_Post(id)
{
if (task_exists(id+TASK_HEALTH))
remove_task(id+TASK_HEALTH)
}
public Fwd_PlayerKilled_Pre(victim, attacker, shouldgib)
{
if (task_exists(victim+TASK_HEALTH))
remove_task(victim+TASK_HEALTH)
}
public zp_round_started(mode, id)
{
if (mode != MODE_BOMBARDIER)
return
if (!zp_get_user_bombardier(id))
return
set_task(START_TIME, "Task_ShowHealth", id+TASK_HEALTH, _, _, "b")
}
public Task_ShowHealth(id)
{
id -= TASK_HEALTH
if (!zp_get_user_bombardier(id))
remove_task(id+TASK_HEALTH)
set_hudmessage(0, 255, 0, HUD_MODE_X, HUD_MODE_Y, 0, 6.0, HOLD_TIME, 0.0, 0.0, -1)
ShowSyncHudMsg(0, g_SyncHud, "Bombardier still has %d health points!", get_user_health(id))
}