Behnam Posted July 20, 2018 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.
DiGiTal Posted July 20, 2018 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
DiGiTal Posted July 20, 2018 Posted July 20, 2018 no, Our Website : https://tutoplayfun.ml/ Our Discord: https://discord.gg/BxkW65z
Behnam Posted July 20, 2018 Author 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 ?
Behnam Posted July 20, 2018 Author 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
DiGiTal Posted July 20, 2018 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)
Behnam Posted July 20, 2018 Author 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 ?
DiGiTal Posted July 21, 2018 Posted July 21, 2018 7 hours ago, Behnam said: Do you have discord ? https://discord.gg/BxkW65z
Dimos7 Posted July 21, 2018 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
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