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

Help With HUD_STATS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RobitaCoita
BANNED
Join Date: Oct 2012
Location: Europe, Romania
Old 11-11-2012 , 18:27   Help With HUD_STATS
Reply With Quote #1

PHP Code:
    // Spectating someone else?
    
if (id != ID_SHOWHUD)
    {
        
// Show name, health, class, and ammo packs and armor
        
set_hudmessage(255250250HUD_SPECT_XHUD_SPECT_Y16.01.10.00.0, -2.5)
        
show_hudmessage(ID_SHOWHUD"%L %s^nHP: %d - %L %s - %L %d - %L %d"ID_SHOWHUD"SPECTATING"g_playername[id],
        
pev(idpev_health), ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[id], ID_SHOWHUD"ARMOR"pev(idpev_armorvalue))
    }
    else
    {
        
// Show health, class and ammo packs and armor
        
set_dhudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.00.930.00.0, -2.5)
        
show_dhudmessage(ID_SHOWHUD"%L: %d - %L %s - %L %d - %L %d"id"ZOMBIE_ATTRIB1"pev(ID_SHOWHUDpev_health), ID_SHOWHUD"CLASS_CLASS",
        class, 
ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[ID_SHOWHUD], ID_SHOWHUD"ARMOR"pev(ID_SHOWHUDpev_armorvalue))
    }

Please, could someone edit this code so I can get from:
Health: - Class: - Ammo packs: - Armor: -

to:
Health: - Armor: - Ammo packs:
RobitaCoita is offline
Send a message via Yahoo to RobitaCoita Send a message via Skype™ to RobitaCoita
ShadyLTD
Member
Join Date: Oct 2012
Old 11-11-2012 , 22:57   Re: Help With HUD_STATS
Reply With Quote #2

PHP Code:
    // Spectating someone else? 
    
if (id != ID_SHOWHUD
    { 
        
// Show name, health, class, and ammo packs and armor 
        
set_hudmessage(255250250HUD_SPECT_XHUD_SPECT_Y16.01.10.00.0, -2.5
        
show_hudmessage(ID_SHOWHUD"%L %s^nHP: %d - %L %s - %L %d - %L %d"ID_SHOWHUD"SPECTATING"g_playername[id], 
        
pev(idpev_health),  ID_SHOWHUD"ARMOR"pev(idpev_armorvalue), ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[id]) 
    } 
    else 
    { 
        
// Show health, class and ammo packs and armor 
        
set_dhudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.00.930.00.0, -2.5
        
show_dhudmessage(ID_SHOWHUD"%L: %d - %L %s - %L %d - %L %d"id"ZOMBIE_ATTRIB1"pev(ID_SHOWHUDpev_health), ID_SHOWHUD"ARMOR"pev(ID_SHOWHUDpev_armorvalue), ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[ID_SHOWHUD]) 
    } 

__________________

Last edited by ShadyLTD; 11-11-2012 at 22:59.
ShadyLTD is offline
RobitaCoita
BANNED
Join Date: Oct 2012
Location: Europe, Romania
Old 11-15-2012 , 17:01   Re: Help With HUD_STATS
Reply With Quote #3

Quote:
Originally Posted by ShadyLTD View Post
PHP Code:
    // Spectating someone else? 
    
if (id != ID_SHOWHUD
    { 
        
// Show name, health, class, and ammo packs and armor 
        
set_hudmessage(255250250HUD_SPECT_XHUD_SPECT_Y16.01.10.00.0, -2.5
        
show_hudmessage(ID_SHOWHUD"%L %s^nHP: %d - %L %s - %L %d - %L %d"ID_SHOWHUD"SPECTATING"g_playername[id], 
        
pev(idpev_health),  ID_SHOWHUD"ARMOR"pev(idpev_armorvalue), ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[id]) 
    } 
    else 
    { 
        
// Show health, class and ammo packs and armor 
        
set_dhudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.00.930.00.0, -2.5
        
show_dhudmessage(ID_SHOWHUD"%L: %d - %L %s - %L %d - %L %d"id"ZOMBIE_ATTRIB1"pev(ID_SHOWHUDpev_health), ID_SHOWHUD"ARMOR"pev(ID_SHOWHUDpev_armorvalue), ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[ID_SHOWHUD]) 
    } 

I changed it that way too but it's buggy.
RobitaCoita is offline
Send a message via Yahoo to RobitaCoita Send a message via Skype™ to RobitaCoita
Sprit3x
Senior Member
Join Date: Sep 2010
Location: Romania, Constanta
Old 11-16-2012 , 03:26   Re: Help With HUD_STATS
Reply With Quote #4

PHP Code:
if (id != ID_SHOWHUD
    { 
        
// Show name, health, class, and ammo packs and armor 
        
set_hudmessage(255250250HUD_SPECT_XHUD_SPECT_Y16.01.10.00.0, -2.5
        
show_hudmessage(ID_SHOWHUD"%L %s^nHP: %d - %L %s - %L %d - %L %d"ID_SHOWHUD"SPECTATING"g_playername[id], 
        
pev(idpev_health), ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[id], ID_SHOWHUD"ARMOR"pev(idpev_armorvalue)) 
    } 
    else 
    { 
        
// Show health, class and ammo packs and armor 
        
set_dhudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.00.930.00.0, -2.5
        
show_dhudmessage(ID_SHOWHUD"%L: %d - %L %s - %L %d"id"ZOMBIE_ATTRIB1"pev(ID_SHOWHUDpev_health), ID_SHOWHUD"CLASS_CLASS"
        class, 
ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[ID_SHOWHUD]) 
    } 

Last edited by Sprit3x; 11-16-2012 at 03:27.
Sprit3x is offline
Send a message via Skype™ to Sprit3x
RobitaCoita
BANNED
Join Date: Oct 2012
Location: Europe, Romania
Old 11-16-2012 , 14:03   Re: Help With HUD_STATS
Reply With Quote #5

It seems I get compilation errors for both of your codes, guys. Please replace my code with yours and try to compile and give me the .amxx afterwards.

Find and download my current zombie_plague40.sma below
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague40.sma - 722 views - 335.4 KB)

Last edited by RobitaCoita; 11-16-2012 at 14:26.
RobitaCoita is offline
Send a message via Yahoo to RobitaCoita Send a message via Skype™ to RobitaCoita
GalaxyA
BANNED
Join Date: Sep 2012
Location: Noob Member
Old 11-17-2012 , 20:50   Re: Help With HUD_STATS
Reply With Quote #6

Quote:
Originally Posted by RobitaCoita View Post
PHP Code:
    // Spectating someone else?
    
if (id != ID_SHOWHUD)
    {
        
// Show name, health, class, and ammo packs and armor
        
set_hudmessage(255250250HUD_SPECT_XHUD_SPECT_Y16.01.10.00.0, -2.5)
        
show_hudmessage(ID_SHOWHUD"%L %s^nHP: %d - %L %d - %L %d"ID_SHOWHUD"SPECTATING"g_playername[id],
        
pev(idpev_health), ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[id], ID_SHOWHUD"ARMOR"pev(idpev_armorvalue))
    }
    else
    {
        
// Show health, class and ammo packs and armor
        
set_dhudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.00.930.00.0, -2.5)
        
show_dhudmessage(ID_SHOWHUD"%L: %d - %L %d - %L %d"id"ZOMBIE_ATTRIB1"pev(ID_SHOWHUDpev_health),
        
ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[ID_SHOWHUD], ID_SHOWHUD"ARMOR"pev(ID_SHOWHUDpev_armorvalue))
    }

Please, could someone edit this code so I can get from:
Health: - Class: - Ammo packs: - Armor: -

to:
Health: - Armor: - Ammo packs:
FIXED

Last edited by GalaxyA; 11-17-2012 at 20:51.
GalaxyA is offline
Send a message via MSN to GalaxyA
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 01:10.


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