WASSIm. Posted May 5, 2013 Share Posted May 5, 2013 how make if player give money show amount to dxdrawtext Link to comment
iPrestege Posted May 5, 2013 Share Posted May 5, 2013 onClientRender DxDrawText getPlayerMoney ? Link to comment
WASSIm. Posted May 5, 2013 Author Share Posted May 5, 2013 (edited) onClientRender DxDrawText getPlayerMoney? why need getPlayerMoney ? Edited May 5, 2013 by Guest Link to comment
xXMADEXx Posted May 5, 2013 Share Posted May 5, 2013 This is how i would script it: client: amount = 0 function text() dxDrawText(amount, 0, 0, 1000, 1000) end t = {} addEvent("onPlayerGetMoney", true) addEventHandler("onPlayerGetMoney", root, function (a) if (a) then addEventHandler("onClientRender", root, text) amount = a t[localPlayer] = setTimer( function () amount = 0 removeEventHandler("onClientRender", root, text) end, 5000, 1 ) end end ) server: addCommandHandler("money", function (p) givePlayerMoney(p,1000) triggerClientEvent(p,"onPlayerGetMoney",p,1000) end ) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now