Results 1 to 2 of 2

Thread: Priv Msg Hud

  1. #1
    Normal User
    Join Date
    Aug 2012
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Priv Msg Hud

    hello, i need hud witch displays 5 - 10 last pm's on top of the screen any1 got it ?

    thanks in advance

  2. #2
    Normal User dgkdgk's Avatar
    Join Date
    Jun 2012
    Location
    Norway
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5
    Recent PM - by Coalamct
    shows last 7 pm's in top left corner

    PHP Code:
    -- max lines to display at once 
    local maxindex 
    7
    -- spacing between lines
    local spacing 
    10
    local index 
    0
    local msgs 
    getmessages("Local Chat")
    local qtd msgs.count-1
    for i=0,qtd do
    if 
    msgs[qtd-i].type == 6
    then
    setfontcolor
    ("cyan")
    addtext(msgs[qtd-i].textworldwin.left+10,worldwin.top+30+(index*spacing))
    index=index+1
    if index == maxindex then
    break
    end
    end
    end 

Posting Permissions

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