Raised This Month: $51 Target: $400
 12% 

[ES][ZP] No me muestra los Hud


  
 
 
Thread Tools Display Modes
Author Message
Ciio
Veteran Member
Join Date: Oct 2009
Location: Arica, Chile
Old 06-16-2010 , 20:03   [ES][ZP] No me muestra los Hud
#1

No me muestra los Hud :/, aca esta el code de los hud

PHP Code:
// Show HUD Task
public ShowHUD(taskid)
{
    static 
id
    id 
ID_SHOWHUD;
    
    
// Player died?
    
if (!is_user_alive(id))
    {
        
// Get spectating target
        
id pev(idPEV_SPEC_TARGET)
        
        
// Target not alive
        
if (!is_user_alive(id)) return;
    }
    
    
// Format the classname
    // Format the classname
    
static class[32]

    if (
g_zombie[id]) // zombies
    
{

        if (
g_nemesis[id])
        
formatex(class, sizeof class - 1"%L"ID_SHOWHUD,"CLASS_NEMESIS")
        else
        
copy(class, sizeof class - 1g_zclass_name[g_zombieclass[id]])
    }
    else 
// humans
    
{

        if (
g_wesker[id])
            
formatex(class, sizeof class - 1"%L"ID_SHOWHUD,"CLASS_WESKER")
        else if (
g_survivor[id])
            
formatex(class, sizeof class - 1"%L"ID_SHOWHUD,"CLASS_SURVIVOR")
        else
            
formatex(class, sizeof class - 1"%L"ID_SHOWHUD,"CLASS_HUMAN")
    }

    
    
// Spectating someone else?
    
if (id != ID_SHOWHUD)
    {
        static 
name[32]
        
get_user_name(idnamesizeof name 1)
        
        
// Show health, class and ammo packs
        
set_hudmessage(255255255HUD_SPECT_YHUD_SPECT_X06.01.10.00.0, -1)
        
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"%L %s^nHP: %d - %L %s - %L %d"ID_SHOWHUD"SPECTATING"namepev(idpev_health), ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[id])
    }
    else
    {
        
// Show health, class and ammo packs
        
set_hudmessage(255,255,255,HUD_STATS_X[id],HUD_STATS_Y[id], 06.01.10.00.0, -1)
        
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"%L: %d - %L %s - %L %d^nVisita www.fire-games.net"id"ZOMBIE_ATTRIB1"pev(ID_SHOWHUDpev_health), ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[ID_SHOWHUD])
    }

No se si necesitan otra cosa para ayudarme, Gracias..
__________________
Ciio is offline
Send a message via MSN to Ciio
peludo
BANNED
Join Date: Oct 2009
Old 06-16-2010 , 20:09   Re: [ES][ZP] No me muestra los Hud
#2

toma usa este y agrega de a poco
PHP Code:
public ShowHUD(taskid)
{
    static 
id
    id 
ID_SHOWHUD;
    
    
// Player died?
    
if (!is_user_alive(id))
    {
        
// Get spectating target
        
id pev(idPEV_SPEC_TARGET)
        
        
// Target not alive
        
if (!is_user_alive(id)) return;
    }
    
    
// Format the classname
    
static class[32], redgreenblue
    
    
if (g_zombie[id]) // zombies
    
{
        
red 200
        green 
250
        blue 
0
        
        
if (g_nemesis[id])
            
formatex(class, sizeof class - 1"%L"ID_SHOWHUD,"CLASS_NEMESIS")
        else
            
copy(class, sizeof class - 1g_zclass_name[g_zombieclass[id]])
    }
    else 
// humans
    
{
        
red 0
        green 
0
        blue 
255
        
        
if (g_survivor[id])
            
formatex(class, sizeof class - 1"%L"ID_SHOWHUD,"CLASS_SURVIVOR")
        else
            
copy(class, sizeof class - 1g_hclass_name[g_humanclass[id]])
    }
    
    
pev(ID_SHOWHUDpev_health)
    
    
// Spectating someone else?
    
if (id != ID_SHOWHUD)
    {
        static 
name[32]
        
get_user_name(idnamesizeof name 1)
        
        
// Show name, health, class, and ammo packs
        
set_hudmessage(255255255HUD_SPECT_XHUD_SPECT_Y06.01.10.00.0, -1)
        
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"%L %s^nLevel: %d - HP: %d - %L %s - %L %d/%d"ID_SHOWHUD"SPECTATING"Get_PlayerLevel(id), namepev(idpev_health), ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[id], Get_AmmoPacks_per_Level(id))
    }
    else
    {        
        
// Show health, class and ammo packs
        
set_hudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.01.10.00.0, -1)
        
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"Level: %d - %L: %d - %L %s - %L %d/%d"Get_PlayerLevel(ID_SHOWHUD), id"ZOMBIE_ATTRIB1"pev(ID_SHOWHUDpev_health), ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[ID_SHOWHUD], Get_AmmoPacks_per_Level(ID_SHOWHUD))
    }

peludo is offline
apuu
BANNED
Join Date: Oct 2009
Location: Argentina
Old 06-16-2010 , 20:29   Re: [ES][ZP] No me muestra los Hud
#3

te falta g_ammopacks[idshowhud]
apuu is offline
Ciio
Veteran Member
Join Date: Oct 2009
Location: Arica, Chile
Old 06-16-2010 , 20:35   Re: [ES][ZP] No me muestra los Hud
#4

Quote:
Originally Posted by apuu View Post
te falta g_ammopacks[idshowhud]
Pero esque me saldria pero con error pero ni siquiera sale.

@peludo

Probare
__________________
Ciio is offline
Send a message via MSN to Ciio
 



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 18:52.


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