K4stic Posted March 16, 2013 Author Share Posted March 16, 2013 can you help me more? because then i post first code it's refresh only userpanelGrid1 and no userpanelGrid2 Link to comment
Castillo Posted March 16, 2013 Share Posted March 16, 2013 Search on the forums, there's a script for this. Is it that hard to search? Link to comment
K4stic Posted March 16, 2013 Author Share Posted March 16, 2013 search for what i don't know what add to search box to search it -.-' Link to comment
iPrestege Posted March 16, 2013 Share Posted March 16, 2013 function update ( old, new ) if ( eventName == "onClientPlayerJoin" ) then guiGridListSetItemText ( playerlist, guiGridListAddRow ( playerlist ), pcolumn, getPlayerName ( source ), false, false ) elseif ( eventName == "onClientPlayerQuit" ) then for row = 0, guiGridListGetRowCount ( playerlist ) do if ( guiGridListGetItemText ( playerlist, row, pcolumn ) == getPlayerName ( source ) ) then guiGridListRemoveRow ( playerlist, row ) break end end elseif ( eventName == "onClientPlayerChangeNick" ) then for row = 0, guiGridListGetRowCount ( playerlist ) do if ( guiGridListGetItemText ( playerlist, row, pcolumn ) == old ) then guiGridListSetItemText ( playerlist, row, pcolumn, new, false, false ) break end end end end addEventHandler ( "onClientPlayerJoin", root, update ) addEventHandler ( "onClientPlayerQuit", root, update ) addEventHandler ( "onClientPlayerChangeNick", root, update ) 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