Jump to content

help draw exp


Recommended Posts

I want draw the exp you gain when you kill a zombie

but the text appears and disappears fast and doesn't see well

server

  addEvent ( "onZombieWasted", true ) 
    addEventHandler ( "onZombieWasted", root, 
        function ( theKiller ) 
             exports.exp_system:addPlayerEXP ( theKiller, math.random(1, 15)) 
triggerClientEvent ( "text", getRootElement() ) 
        end 
    ) 

client

function text() 
        dxDrawText("+ exp", 375, 371, 463, 440, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) 
        dxDrawText("+ exp", 375, 369, 463, 438, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) 
        dxDrawText("+ exp", 373, 371, 461, 440, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) 
        dxDrawText("+ exp", 373, 369, 461, 438, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) 
        dxDrawText("+ exp", 374, 370, 462, 439, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) 
    end 
addEvent ( "text", true ) 
addEventHandler ( "text", root, text )   

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...