Raised This Month: $ Target: $400
 0% 

Shows Nemizidy and survivor hp


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Simax
Member
Join Date: Apr 2009
Old 05-21-2009 , 05:05   Shows Nemizidy and survivor hp
Reply With Quote #1

I am looking for a plugin that shows how much remains Nemizidy and survivor hp
Simax is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 05-21-2009 , 08:34   Re: Shows Nemizidy and survivor hp
Reply With Quote #2

http://escripting.webcindario.com/showthread.php?t=16
sorry, the forum is in spanish :S
__________________
alan_el_more is offline
Simax
Member
Join Date: Apr 2009
Old 05-21-2009 , 09:13   Re: Shows Nemizidy and survivor hp
Reply With Quote #3

thx +k, survivor ???
Simax is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 05-21-2009 , 09:29   Re: Shows Nemizidy and survivor hp
Reply With Quote #4

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>

#define PLUGIN_NAME "[ZP] Mostrar Vida Del Survivor"
#define PLUGIN_VERS "1.0"
#define PLUGIN_AUTH "hi!"

#define TASK_HEALTH 1234554321

new g_iHudSync

public plugin_init() 
{
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSPLUGIN_AUTH)
    
    
g_iHudSync CreateHudSyncObj()
    
    
// Fwd's
    
RegisterHam(Ham_Spawn"player""Fwd_PlayerSpawn_Post"1)
    
RegisterHam(Ham_Killed"player""Fwd_PlayerKilled_Pre"0)
}

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_SURVIVOR)
        return
        
    if (!
zp_get_user_survivor(id))
        return
        
    
set_task(1.0"Task_ShowHealth"id+TASK_HEALTH__"b")
}

public 
Task_ShowHealth(id)
{
    
id -= TASK_HEALTH
    
    
if (!zp_get_user_nemesis(id))
        
remove_task(id+TASK_HEALTH)
    
    
set_hudmessage(25500, -1.00.201.01.00.10.2, -1)
    
ShowSyncHudMsg(0g_iHudSync"Vida Del Survivor: %d"get_user_health(id))

__________________
alan_el_more is offline
Simax
Member
Join Date: Apr 2009
Old 05-21-2009 , 11:27   Re: Shows Nemizidy and survivor hp
Reply With Quote #5

thx alan_el_more, +k by me
Simax is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 05-21-2009 , 11:49   Re: Shows Nemizidy and survivor hp
Reply With Quote #6

I think you forgot to translate this:

PHP Code:
    ShowSyncHudMsg(0g_iHudSync"Vida Del Survivor: %d"get_user_health(id)) 
->

PHP Code:
    ShowSyncHudMsg(0g_iHudSync"Health of Survivor: %d"get_user_health(id)) 
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Simax
Member
Join Date: Apr 2009
Old 05-21-2009 , 11:59   Re: Shows Nemizidy and survivor hp
Reply With Quote #7

error
Code:
    id -= TASK_HEALTH
    
    if (!zp_get_user_nemesis(id))
        remove_task(id+TASK_HEALTH)
=>
Code:
    id -= TASK_HEALTH
    
    if (!zp_get_user_survivor(id))
        remove_task(id+TASK_HEALTH)
Simax is offline
Simax
Member
Join Date: Apr 2009
Old 05-21-2009 , 12:09   Re: Shows Nemizidy and survivor hp
Reply With Quote #8

How make Hud message for Survivor blue??
Simax is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 05-21-2009 , 13:09   Re: Shows Nemizidy and survivor hp
Reply With Quote #9

PHP Code:
    set_hudmessage(25500, -1.00.201.01.00.10.2, -1)
    
ShowSyncHudMsg(0g_iHudSync"Vida Del Survivor: %d"get_user_health(id)) 
PHP Code:
 set_hudmessage(00255, -1.00.201.01.00.10.2, -1)
    
ShowSyncHudMsg(0g_iHudSync"Health Of Survivor: %d"get_user_health(id)) 
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Simax
Member
Join Date: Apr 2009
Old 05-22-2009 , 01:19   Re: Shows Nemizidy and survivor hp
Reply With Quote #10

Big thx all for the help
Simax is offline
Reply



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 02:11.


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