John_Scott Posted December 6, 2013 Share Posted December 6, 2013 Hi! I would like to make a script, witch show the player's name on the top of the character by 30-40 meters only for admins. How i can this? Thanks for help! Link to comment
TrapLord Studios™ Posted December 7, 2013 Share Posted December 7, 2013 -- Print a list of all the alive players alivePlayers = getAlivePlayers () if ( alivePlayers ) then -- if we got the table alivePlayersList = "none" -- Loop through the table for playerKey, playerValue in ipairs(alivePlayers) do -- add their name to the list if ( alivePlayersList == "none" ) then alivePlayersList = getPlayerName ( playerValue ) else alivePlayersList = alivePlayersList .. ", " .. getPlayerName ( playerValue ) end end outputChatBox ( "Alive Players: " .. alivePlayersList ) 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