View Single Post
Just4Games
Senior Member
Join Date: Jan 2013
Location: Romania
Old 07-16-2014 , 06:23   Re: [ZP] Health Reminder (Nemesis + Sniper + Survivor + Assassin)
Reply With Quote #2

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_NAMEPLUGIN_VERSPLUGIN_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(victimattackershouldgib)
{
    if (
task_exists(victim+TASK_HEALTH))
        
remove_task(victim+TASK_HEALTH)
}

public 
zp_round_started(modeid)
{
    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(02550HUD_MODE_XHUD_MODE_Y06.0HOLD_TIME0.00.0, -1)
    
ShowSyncHudMsg(0g_SyncHud"Bombardier still has %d health points!"get_user_health(id))

Attached Files
File Type: sma Get Plugin or Get Source (health_reminder_bombardier.sma - 1159 views - 1.3 KB)
__________________

Just an old fart revisiting the nostalgia.
---------
Oh yeah
|[[ZPA/ZPS]NoSound]|[[ZPA/ZPS]Hud Stats(Edited)]|

PS: I go by MoistWomble nowadays.

Last edited by Just4Games; 07-16-2014 at 06:26.
Just4Games is offline