Raised This Month: $66 Target: $400
 16% 

Subplugin Submission [ZP] Health Reminder (Nemesis + Sniper + Survivor + Assassin + Bombardier)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-16-2014 , 06:48   [ZP] Health Reminder (Nemesis + Sniper + Survivor + Assassin + Bombardier)
Reply With Quote #1

[ZP] Health Reminder
(Nemesis + Sniper + Survivor + Assassin + Bombardier)


Status:
UP-TO-DATE
(6/1/2015)

Quote:
This plugin is compatible with ZPA 1.6.1, ZP4.3 and ZP5.0 (only 2), and ZPS.
Maybe, you will say that there are already similar plugin. However, this plugin is still different.

What new!
Quote:
The reminder will be displayed as a hud message. The colour is green.
Description:
Quote:
This plugin will automatically detect what type of round is being played in the server (Nemesis Round/ Sniper Round/ Survivor Round/ Assassin Round/ Bombardier Round). After that it, will display a hud message about the remaining health of Nemesis/ Sniper/ Survivor/ Assassin/ Bombardier.
There are 5 different types of health reminder:
Quote:
1. Nemesis Health Reminder.
2. Survivor Health Reminder.
3. Sniper Health Reminder.
4. Assassin Health Reminder.
5. Bombardier Health Reminder (for ZPS only).
All of this plugins is working well in ZPA 1.6.1 server. I have tested it.

Can I use this plugin with ZP4.3 or ZP5.0?

If you want to use this plugin with ZP4.3 or ZP5.0.5 and above, there are only two plugin will work:
Quote:
1. Nemesis Health Reminder.
2. Survivor Health Reminder.
However, you must change this:
PHP Code:
#include <zombie_plague_advance> 
-->
PHP Code:
#include <zombieplague> 
Can I use this plugin for ZPS?

Yes, of course especially this plugin:
Quote:
Bombardier Health Reminder.
However, if you want to use this plugin in ZPS, you have to edit the code for Assassin Health Reminder and Sniper Health Reminder:
PHP Code:
#include <zombie_plague_advance> 
-->
PHP Code:
#include <zombieplague> 
Health Reminder v2!

This is the combined plugin that contains four types of health reminder which are for Assassin, Sniper, Nemesis and Survivor. So, what can you edit.
PHP Code:
    g_iNemesisReminder register_cvar("zp_nemesis_remimder""1")
    
g_iSurvivorReminder register_cvar("zp_survivor_remimder""1")
    
g_iAssassinReminder register_cvar("zp_assasin_remimder""1")
    
g_iSniperReminder register_cvar("zp_sniper_remimder""1"
However, this plugin only can be used in this ZP version:

1. Zombie Plague Advance
2. ZP5.0.8 + Sniper & Assassin + Compatibility with ZPA

If you want to use this plugin in ZP5.0.8 + Sniper & Assassin + Compatibility with ZPA just edit this line:
PHP Code:
#include <zombie_plague_advance> 
-->
PHP Code:
#include <zombieplague> 
Health Reminder v3!

This version will print the reminder in chat. If you want this version, just download from here:

https://forums.alliedmods.net/showpo...3&postcount=40

Credits:
Quote:
1. Just4Games for editing this plugin so that it can be used for Bombardier Round in ZPS.
2. Mohsen9010 for testing this plugin in ZP5.0.8 + Sniper & Assassin + Compatibility with ZPA.
3. etc
Changelog:
-->


Screenshots:

1. Nemesis Health Reminder:


2. Sniper Health Reminder:


3. Assassin Health Reminder:


4. Survivor Health Reminder:


5. Bombardier Health Reminder (for ZPS only):


I recommend you to use this plugin also along with this plugin (if you are using ZPA only):
I hope this will be useful.
Attached Files
File Type: sma Get Plugin or Get Source (health_reminder_assassin.sma - 876 views - 1.3 KB)
File Type: sma Get Plugin or Get Source (health_reminder_nem.sma - 889 views - 1.3 KB)
File Type: sma Get Plugin or Get Source (health_reminder_sniper.sma - 751 views - 1.3 KB)
File Type: sma Get Plugin or Get Source (health_reminder_survivor.sma - 700 views - 1.3 KB)
File Type: sma Get Plugin or Get Source (health_reminder_bombardier.sma - 491 views - 1.3 KB)
File Type: sma Get Plugin or Get Source (health_reminder_2.sma - 537 views - 2.2 KB)
__________________
Problem with ZP?
ZP Helper!

Last edited by zmd94; 01-05-2015 at 12:41.
zmd94 is offline
Just4Games
Senior Member
Join Date: Jan 2013
Location: Romania
Old 07-16-2014 , 07: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 - 311 views - 1.3 KB)
__________________

Last edited by Just4Games; 07-16-2014 at 07:26.
Just4Games is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-16-2014 , 07:41   Re: [ZP] Health Reminder (Nemesis + Sniper + Survivor + Assassin)
Reply With Quote #3

@ Just4Games. Thank you for helping. I quite busy and do not have time to edit this plugin for ZPS. I will update the first post.
__________________
Problem with ZP?
ZP Helper!
zmd94 is offline
mohsen9010
Senior Member
Join Date: Jun 2011
Location: Iran
Old 07-16-2014 , 23:00   Re: [ZP] Health Reminder (Nemesis + Sniper + Survivor + Assassin + Bombardier)
Reply With Quote #4

Good
For ZP5.0.8 + Sniper & Assassin + Compatibility with ZPA works :
Code:
1. Nemesis Health Reminder.
2. Survivor Health Reminder.
3. Sniper Health Reminder.
4. Assassin Health Reminder.
__________________
Iman in Allah
mohsen9010 is offline
Send a message via Yahoo to mohsen9010 Send a message via Skype™ to mohsen9010
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-17-2014 , 00:26   Re: [ZP] Health Reminder (Nemesis + Sniper + Survivor + Assassin + Bombardier)
Reply With Quote #5

@ mohsen9010, Thank you for testing it with ZP5.0.8.
__________________
Problem with ZP?
ZP Helper!
zmd94 is offline
Just4Games
Senior Member
Join Date: Jan 2013
Location: Romania
Old 07-27-2014 , 13:36   Re: [ZP] Health Reminder (Nemesis + Sniper + Survivor + Assassin + Bombardier)
Reply With Quote #6

Didn't see this till now, the hud only appears every 6 seconds i think so, please set a lower value...
I did this too but just saying for others who don't know where to edit etc.
__________________
Just4Games is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-27-2014 , 20:32   Re: [ZP] Health Reminder (Nemesis + Sniper + Survivor + Assassin + Bombardier)
Reply With Quote #7

Quote:
The hud only appears every 6 seconds, I think so. Please set a lower value.
Sorry, what do you mean? Do you want the message to be appeared always as a fixed hud message?
__________________
Problem with ZP?
ZP Helper!
zmd94 is offline
Just4Games
Senior Member
Join Date: Jan 2013
Location: Romania
Old 07-28-2014 , 04:32   Re: [ZP] Health Reminder (Nemesis + Sniper + Survivor + Assassin + Bombardier)
Reply With Quote #8

I mean that the message appears every 6 seconds. It appears with 10000 HP (for example) the hud disappear and it comes back after 6 seconds with the HP i have (if someone damage me).
__________________
Just4Games is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-28-2014 , 07:10   Re: [ZP] Health Reminder (Nemesis + Sniper + Survivor + Assassin + Bombardier)
Reply With Quote #9

Quote:
I mean that the message appears every 6 seconds. It appears with 10000 HP (for example) the hud disappear and it comes back after 6 seconds with the health that I have.
Yes, it right.
Quote:
Please set a lower value.
Sorry, I'm still can't understand this request? May you clarify it more?
__________________
Problem with ZP?
ZP Helper!
zmd94 is offline
Just4Games
Senior Member
Join Date: Jan 2013
Location: Romania
Old 07-28-2014 , 07:13   Re: [ZP] Health Reminder (Nemesis + Sniper + Survivor + Assassin + Bombardier)
Reply With Quote #10

This:
PHP Code:
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)) 
->
PHP Code:
set_hudmessage(02550HUD_MODE_XHUD_MODE_Y00.4HOLD_TIME0.00.0, -1)
    
ShowSyncHudMsg(0g_SyncHud"Bombardier still has %d health points!"get_user_health(id)) 
And i changed the holding time to 2.
__________________
Just4Games is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:28.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode