mr.Extreme Posted October 18, 2013 Share Posted October 18, 2013 (edited) hello all This script does not work How to fix it?? clientside: CODE REMOVED serverside: function processAdminList( ) local players = getElementsByType( "player" ); local admins = { }; local moderators = { }; for k,v in ipairs( players ) do local accountname = ""; local account = getPlayerAccount( v ); local name = getPlayerName( v ); if not isGuestAccount( account )then local accountname = getAccountName( account ); if isObjectInACLGroup( "user." .. accountname, aclGetGroup( "Admin" ) ) then table.insert( admins, name ); elseif isObjectInACLGroup( "user." .. accountname, aclGetGroup( "Moderator" ) ) then table.insert( moderators, name ); end end end triggerClientEvent( root, "onClientStaffRefresh", root, moderators, admins ); end addEventHandler( "onResourceStart", root, processAdminList ); addEventHandler( "onPlayerLogin", root, processAdminList ); addEventHandler( "onPlayerLogout", root, processAdminList ); addEventHandler( "onPlayerChangeNick", root, processAdminList ); addEventHandler( "onPlayerQuit", root, processAdminList ); Edited October 18, 2013 by Guest Link to comment
Markeloff Posted October 18, 2013 Share Posted October 18, 2013 Can you post your meta.xml? Because, I couldn't find the problem. Link to comment
mr.Extreme Posted October 18, 2013 Author Share Posted October 18, 2013 Can you post your meta.xml? Because, I couldn't find the problem. Link to comment
-.Paradox.- Posted October 19, 2013 Share Posted October 19, 2013 Client side script is stolen from client files of http://grafuroam.ucoz.com/ , and please try to do it you're self as far as i know there is a resource in community that does, you don't need dxDrawText. Link to comment
Recommended Posts