Haze Posted November 4, 2011 Share Posted November 4, 2011 Hello All dose anyone got any Idea on how to Make the Star Number Attach to the Player Name i know that i will use getwantedlevel to Know how much stars but what Function for Dx Should i Use or how i make attach with the Name Of the Player Link to comment
myonlake Posted November 4, 2011 Share Posted November 4, 2011 Hello Haze, I am not sure, but I would suggest this one. https://wiki.multitheftauto.com/wiki/DxDrawText And you might not need that, you can just change the player's name. Link to comment
Haze Posted November 4, 2011 Author Share Posted November 4, 2011 yeh lts say i change player Name if he go to Settings he can Resat his Name Agine for the Dx im not sure how to Make the Text Attache to the Name Link to comment
Charlie_Jefferson Posted November 4, 2011 Share Posted November 4, 2011 function wantedLevel( thePlayer ) pname = getPlayerName(thePlayer) wanted = getPlayerWantedLevel(thePlayer) wantedStars = { 1, 2, 3, 4, 5 } if wanted == wantedStars then setPlayerName(thePlayer, pname .. "[" .. wanted .. "]") else return end end Not sure if it works. Link to comment
Castillo Posted November 4, 2011 Share Posted November 4, 2011 function updateWantedLevel() for index, player in pairs(getElementsByType("player")) do setPlayerNametagText(player, getPlayerName(player).." [".. getPlayerWantedLevel(player) .."]") end end setTimer(updateWantedLevel,2000,0) Link to comment
Haze Posted November 4, 2011 Author Share Posted November 4, 2011 Thx m8 u always been the best Link to comment
Castillo Posted November 4, 2011 Share Posted November 4, 2011 You're welcome. P.S: It may not be the most efficient way though. 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