Hud Task ZP 4.3 CSO

Cereri de pluginuri noi, skinuri in CS, etc.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
Koayuri
Membru, skill 0
Membru, skill 0
Posts: 52
Joined: 10 Jun 2022, 13:48
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: 188.212.100.26:27015
SteamID: Luciferr1
Fond eXtream: 0
Discord: Lucifer.#0001
Has thanked: 1 time
Been thanked: 2 times

12 Feb 2023, 19:45

Am si eu nevoie sa imi adaugati acel hud de spec pe mijloc in jos la timer gen sus langa timer daca se poate la cel de la alive e perfect doar ca la cel de la spec doresc sa fie fix in aceeasi pozitie cu alive dar fara efecte sa ramane in permanenta acel hud ca mai are momente cand dispare

Sursa:

Code: Select all

public ShowHUD(taskid)
{
    static id
    id = ID_SHOWHUD;
    //new message[128]
    
    // Player died?
    if (!g_isalive[id])
    {
        // Get spectating target
        id = pev(id, PEV_SPEC_TARGET)
        
        // Target not alive
        if (!g_isalive[id]) return;
    }
    
    // Format classname
    static class[32]
    
    if (g_zombie[id]) // zombies
    {
        
        if (g_nemesis[id])
            formatex(class, charsmax(class), "%L", ID_SHOWHUD, "CLASS_NEMESIS")
        else
            copy(class, charsmax(class), g_zombie_classname[id])
    }
    else // humans
    {
        
        if (g_survivor[id])
            formatex(class, charsmax(class), "%L", ID_SHOWHUD, "CLASS_SURVIVOR")
        else
            formatex(class, charsmax(class), "%L", ID_SHOWHUD, "CLASS_HUMAN")
    }
    
    // Spectating someone else?
    if (id != ID_SHOWHUD)
    {        
             // Show name, health, class, and ammo packs
             set_dhudmessage(255, 255, 255, HUD_SPECT_X, HUD_SPECT_Y, -0.78, 0.80, 0.1, 1.0, 1.0)
             show_dhudmessage(ID_SHOWHUD, "..:: [Spectating %s]^n[Health: %i] [Class: %s] [Armor: %i]^n[Forum: %s] ::..", g_playername[id], pev(ID_SHOWHUD, pev_health), class, pev(ID_SHOWHUD, pev_armorvalue), FORUMNAME)
        }
    else
    {
        new color[3]
        
        if(g_nemround)
        {
            color[0] = 255
            color[1] = 0 
            color[2] = 0
        }    
        else if(g_survround)
        {
            color[2] = 255
            color[0] = 0
            color[1] = 0
        }    
        else if(g_plagueround)
        {
            color[0] = 199
            color[1] = 21
            color[2] = 133
        }
        else
        {
            color[0] = 0
            color[1] = 255
            color[2] = 0
        }
        
        set_dhudmessage(color[0], color[1], color[2], -1.0, 0.85, 0.1, 1.0, 1.0)
        show_dhudmessage(ID_SHOWHUD, "..:: [Health: %i] [Class: %s] [Armor: %i] ::..^n[ Forum: %s ]", pev(ID_SHOWHUD, pev_health), class, pev(ID_SHOWHUD, pev_armorvalue), FORUMNAME)

        
    }
}
Last edited by Koayuri on 14 Feb 2023, 17:32, edited 2 times in total.
RoyalServer 2
Koayuri
Membru, skill 0
Membru, skill 0
Posts: 52
Joined: 10 Jun 2022, 13:48
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: 188.212.100.26:27015
SteamID: Luciferr1
Fond eXtream: 0
Discord: Lucifer.#0001
Has thanked: 1 time
Been thanked: 2 times

14 Feb 2023, 16:01

Se poate?
User avatar
kidd0x
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 1054
Joined: 06 Oct 2018, 14:41
Detinator Steam: Da
SteamID: /id/kidd0x/
Reputatie: Utilizator neserios (tepar!)
Fond eXtream: 0
Location: Constangeles
Discord: kidd0x
Has thanked: 172 times
Been thanked: 81 times

14 Feb 2023, 19:38

Modifici astea HUD_SPECT_X, HUD_SPECT_Y
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests