Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onNameChanged(oldNick, newNick)
- if (oldNick) then
- guiGridListRemoveRow(Main_Gridlist, oldNick)
- oldNick = nil
- local playerRow = guiGridListAddRow(Main_Gridlist)
- guiGridListSetItemText(Main_Gridlist, playerRow, 1, newNick, false, false)
- end
- end
- addEventHandler("onClientPlayerChangeNick", root, onNameChanged)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement