Results 1 to 8 of 8

Thread: HUD tutorial

  1. #1
    iBot User
    Join Date
    Dec 2012
    Posts
    25
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    11
    Rep Power
    4

    HUD tutorial

    hello, I need some help to activate a hud.
    Here is how I do it:
    HUD > list (new) > Hud0 > Script
    and then I copy the codes that I get from forum

    Is it right? I already tried to get more than 3 HUD's for recent private message, and not even one worked.

  2. #2
    Moderator Furieri's Avatar
    Join Date
    Jun 2012
    Location
    Vitoria - ES / Brasil
    Posts
    792
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    199 Post(s)
    Reputation
    158
    Rep Power
    7
    After this you have to "enable: yes" in Hud0 and HUDS

  3. #3
    Banned
    Join Date
    Aug 2013
    Location
    Vengoth
    Posts
    493
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    60 Post(s)
    Reputation
    82
    Rep Power
    0
    Or maybe the recent private you tried to take its not working properly anymore, I tried 2 different ones two and both not working.

  4. #4
    Focus Group MoS's Avatar
    Join Date
    Feb 2012
    Posts
    832
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    63 Post(s)
    Reputation
    77
    Rep Power
    6
    after some update few months ago, you must change a number inside the hud to make it work, use this one, it works perfect

    Lua Code:
    --[[ 
        Name: Recent PM HUD
        Version: v2.0.0
        Status: Works
        TODO: 
    ]]--
     
     
    --How many lines of text:
    local totalLines = 10
     
    --Do not edit below:
    local spaceLines = 13
    local lines = 0
    local msgs = getmessages("Local Chat")
    local qtd = msgs.count-1
     
     
    for i=0,qtd 
    do
        if msgs[qtd-i].type == 7
        then
            setfontcolor("cyan")
        addtext(msgs[qtd-i].text, worldwin.left+15,worldwin.bottom-799+(lines*spaceLines))
            lines=lines+1
            if lines == totalLines 
            then
                break
            end
        end
    end


    it used to be number 6.... check this line

    if msgs[qtd-i].type == 7

    now, as you can see, its 7
    Ajudei você? ...............+REP
    -----------------------------------------
    Did I help you? ..........+REP

  5. #5
    iBot User
    Join Date
    Dec 2012
    Posts
    25
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    11
    Rep Power
    4
    well, it is not working for me. Anyway, I gave you reputation points as you tried to help me

  6. #6
    Focus Group MoS's Avatar
    Join Date
    Feb 2012
    Posts
    832
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    63 Post(s)
    Reputation
    77
    Rep Power
    6
    weird... it works for all my scripts

    delete all ibot files, download, run as admin and try again

    if still doesnt work, pm me
    Ajudei você? ...............+REP
    -----------------------------------------
    Did I help you? ..........+REP

  7. #7
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    @MoS @chupacabra
    You have "worldwin.bottom-799"?
    It appeared outside the screen for me, maybe you have same problem, this works for me
    Lua Code:
     
    --[[ 
        Name: Recent PM HUD
        Version: v2.0.0
        Status: Works
        TODO: 
    ]]--
     
     
    --How many lines of text:
    local totalLines = 10
     
    --Do not edit below:
    local spaceLines = 13
    local lines = 0
    local msgs = getmessages("Local Chat")
    local qtd = msgs.count-1
     
     
    for i=0,qtd 
    do
        if msgs[qtd-i].type == 7
        then
            setfontcolor("cyan")
        addtext(msgs[qtd-i].text, worldwin.left+15,worldwin.bottom+(lines*spaceLines  ))
            lines=lines+1
            if lines == totalLines 
            then
                break
            end
        end
    end

  8. #8
    Focus Group MoS's Avatar
    Join Date
    Feb 2012
    Posts
    832
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    63 Post(s)
    Reputation
    77
    Rep Power
    6
    Quote Originally Posted by Drakke View Post
    @MoS @chupacabra
    You have "worldwin.bottom-799"?
    It appeared outside the screen for me, maybe you have same problem, this works for me
    Lua Code:
     
    --[[ 
        Name: Recent PM HUD
        Version: v2.0.0
        Status: Works
        TODO: 
    ]]--
     
     
    --How many lines of text:
    local totalLines = 10
     
    --Do not edit below:
    local spaceLines = 13
    local lines = 0
    local msgs = getmessages("Local Chat")
    local qtd = msgs.count-1
     
     
    for i=0,qtd 
    do
        if msgs[qtd-i].type == 7
        then
            setfontcolor("cyan")
        addtext(msgs[qtd-i].text, worldwin.left+15,worldwin.bottom+(lines*spaceLines  ))
            lines=lines+1
            if lines == totalLines 
            then
                break
            end
        end
    end
    well, I adjusted for my screen kkk
    Ajudei você? ...............+REP
    -----------------------------------------
    Did I help you? ..........+REP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •