TheIceman1 Posted February 27, 2013 Share Posted February 27, 2013 Ovako,zašto mi ovaj kod pokaže wanted players samo kad restartam resource,a kad otipkam /reconnect onda mi nece pokazat... for id, player in ipairs(getElementsByType("player")) do if (getPlayerWantedLevel(player) > 0) then local row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText ( GUIEditor_Grid[1], row, GUIEditor_Column[1], getPlayerName( player ), false, false ) guiGridListSetItemText ( GUIEditor_Grid[1], row, GUIEditor_Column[2], getPlayerWantedLevel( player ), false, false ) end end Link to comment
CapY Posted February 28, 2013 Share Posted February 28, 2013 Zato jer nigdje ne snimis "wanted level" INT i onda normalno dok se reconnectas da ti se izgube podatci. Kombiniraj onPlayerQuit i setAccountData. 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