Behnam Posted July 20, 2018 Share Posted July 20, 2018 Hi all. Please give me a ID System. ID players in name tag. ( 1 ) Player @Galactix You can give me a script ? Thanks. Link to comment
DiGiTal Posted July 20, 2018 Share Posted July 20, 2018 ids={} function joiner(plr) for i=1,getMaxPlayers() do if not ids[i] then ids[i] = source setElementData(source,"id",i) break end end end addEventHandler("onPlayerJoin",root,joiner) function id() for k, v in ipairs(getElementsByType("player")) do local MyID = getElementData(v,"id") if true then setPlayerName(v,"[..MyID..]..getPlayerName(v)) end end end end Link to comment
DiGiTal Posted July 20, 2018 Share Posted July 20, 2018 no, Our Website : https://tutoplayfun.ml/ Our Discord: https://discord.gg/BxkW65z Link to comment
Behnam Posted July 20, 2018 Author Share Posted July 20, 2018 Just now, DiGiTal said: no, Our Website : https://tutoplayfun.ml/ Our Discord: https://discord.gg/BxkW65z You Have Make RPG Game Mode ? Link to comment
DiGiTal Posted July 20, 2018 Share Posted July 20, 2018 im paid scripter and designer Link to comment
Behnam Posted July 20, 2018 Author Share Posted July 20, 2018 34 minutes ago, DiGiTal said: ids={} function joiner(plr) for i=1,getMaxPlayers() do if not ids[i] then ids[i] = source setElementData(source,"id",i) break end end end addEventHandler("onPlayerJoin",root,joiner) function id() for k, v in ipairs(getElementsByType("player")) do local MyID = getElementData(v,"id") if true then setPlayerName(v,"[..MyID..]..getPlayerName(v)) end end end end it did not work Link to comment
DiGiTal Posted July 20, 2018 Share Posted July 20, 2018 ids={} function joiner(plr) for i=1,getMaxPlayers() do if not ids[i] then ids[i] = source setElementData(source,"id",i) break end end end addEventHandler("onPlayerJoin",root,joiner) function id() for k, v in ipairs(getElementsByType("player")) do local MyID = getElementData(v,"id") if true then setPlayerName(v,"[..MyID..]..getPlayerName(v)) end end end end addEventHandler("onPlayerJoin",root,id) Link to comment
Behnam Posted July 20, 2018 Author Share Posted July 20, 2018 5 minutes ago, DiGiTal said: ids={} function joiner(plr) for i=1,getMaxPlayers() do if not ids[i] then ids[i] = source setElementData(source,"id",i) break end end end addEventHandler("onPlayerJoin",root,joiner) function id() for k, v in ipairs(getElementsByType("player")) do local MyID = getElementData(v,"id") if true then setPlayerName(v,"[..MyID..]..getPlayerName(v)) end end end end addEventHandler("onPlayerJoin",root,id) Do you have discord ? Link to comment
DiGiTal Posted July 21, 2018 Share Posted July 21, 2018 7 hours ago, Behnam said: Do you have discord ? https://discord.gg/BxkW65z Link to comment
Dimos7 Posted July 21, 2018 Share Posted July 21, 2018 (edited) ids={} function joiner(plr) for i=1,getMaxPlayers() do if not ids[i] then ids[i] = source setElementData(source,"id",i) break end end end addEventHandler("onPlayerJoin",root,joiner) function id() for k, v in ipairs(getElementsByType("player")) do local MyID = getElementData(v,"id") if true then setPlayerName(v," ["..MyID.."]"..getPlayerName(v)) end end end end addEventHandler("onPlayerJoin",root,id) Edited July 21, 2018 by Dimos7 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