Jump to content

I got Questionn


Haze

Recommended Posts

Posted

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

Posted

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

Posted
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.

Posted
function updateWantedLevel() 
     for index, player in pairs(getElementsByType("player")) do 
          setPlayerNametagText(player, getPlayerName(player).." [".. getPlayerWantedLevel(player) .."]") 
     end 
end 
setTimer(updateWantedLevel,2000,0) 

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...