1LoL1 Posted August 24, 2017 Posted August 24, 2017 Can anyone help me? it's possible delete my nick of this? for i,v in ipairs (getElementsByType("player")) do guiGridListSetItemText(GUIEditor.gridlist[1], guiGridListAddRow(GUIEditor.gridlist[1]), 1, string.gsub(getPlayerName(v), "#%x%x%x%x%x%x", ""), false, true) end
Dimos7 Posted August 24, 2017 Posted August 24, 2017 for i,v in ipairs (getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, string.gsub(getPlayerName(v), "#%x%x%x%x%x%x", ""), false, true) guiGridListSetItemData(GUIEditor.gridlist[1], row, 1, getPlayerName(v)) end
Dimos7 Posted August 24, 2017 Posted August 24, 2017 what its the problem any error or warning from debugscript also please post all code related with that part of script not just few code oh i didn't see you want to not apear your name yes its possible for i,v in ipairs (getElementsByType("player")) do if getPlayerName(v) ~= getPlayerName(localPlayer) then guiGridListSetItemText(GUIEditor.gridlist[1], guiGridListAddRow(GUIEditor.gridlist[1]), 1, string.gsub(getPlayerName(v), "#%x%x%x%x%x%x", ""), false, true) end end
1LoL1 Posted August 24, 2017 Author Posted August 24, 2017 (edited) function lalala () for i,v in ipairs (getElementsByType("player")) do outputChatBox(getPlayerName(v)) end end addCommandHandler("players", lalala) here.. how i can delete my name? but others i will see. Works thanks. Edited August 24, 2017 by 1LoL1
!#NssoR_) Posted August 24, 2017 Posted August 24, 2017 Just to benefit , you can do it by this method : for i,v in ipairs (getElementsByType("player")) do if v ~= localPlayer then guiGridListSetItemText(GUIEditor.gridlist[1], guiGridListAddRow(GUIEditor.gridlist[1]), 1, string.gsub(getPlayerName(v), "#%x%x%x%x%x%x", ""), false, true) end end No need to check by the name.
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