JamesCaeser Posted May 31, 2017 Share Posted May 31, 2017 (edited) function checkClient(checkAccess,player,...) if client and client ~= player and g_Prefs.securitylevel >= 2 then local desc = table.concat({...}," ") local ipAddress = getPlayerIP(client) outputDebugString( "Admin security - Client/player mismatch from " .. tostring(ipAddress) .. " (" .. tostring(desc) .. ")", 1 ) cancelEvent() if g_Prefs.clientcheckban then local reason = "admin checkClient (" .. tostring(desc) .. ")" addBan ( ipAddress, nil, nil, getRootElement(), reason ) end return true end if checkAccess and g_Prefs.securitylevel >= 1 then if type(checkAccess) == 'string' then if hasObjectPermissionTo ( player, checkAccess ) then return false -- Access ok end if hasObjectPermissionTo ( player, "general.adminpanel" ) then outputDebugString( "Admin security - Client does not have required rights ("..checkAccess.."). " .. tostring(ipAddress) .. " (" .. tostring(desc) .. ")" ) return true -- Low risk fail - Can't do specific command, but has access to admin panel end end if not hasObjectPermissionTo ( player, "general.adminpanel" ) then local desc = table.concat({...}," ") local ipAddress = getPlayerIP(client or player) outputDebugString( "Admin security - Client without admin panel rights trigged an admin panel event. " .. tostring(ipAddress) .. " (" .. tostring(desc) .. ")", 2 ) return true -- High risk fail - No access to admin panel end end return false end Errors: ERROR: adminp\server\admin_server.lua:1416: Admin security - Client/player mismatch from **.**.***.** (onElementDataChange isAmeShowing) ERROR: adminp\server\admin_server.lua:1416: Admin security - Client/player mismatch from **.**.***.** (onElementDataChange isAdoshowing) Help me, please Edited May 31, 2017 by JamesCaeser Link to comment
Hale Posted May 31, 2017 Share Posted May 31, 2017 Could you please provide more information? When is this function being called, what is g_Prefs.securitylevel and what is the purpose of this function? Link to comment
JamesCaeser Posted May 31, 2017 Author Share Posted May 31, 2017 This error occurs when write in chat say /ame ..... The error itself comes from admin-panel Link to comment
Investor Posted May 31, 2017 Share Posted May 31, 2017 ERROR: adminp\server\admin_server.lua:1416: Admin security - Client/player mismatch from **.**.***.** (onElementDataChange isAmeShowing) ERROR: adminp\server\admin_server.lua:1416: Admin security - Client/player mismatch from **.**.***.** (onElementDataChange isAdoshowing) These errors are a part of admin panel's anticheat system. The code prevents one client from messing with another player's element data, and the IP shown in the error is the IP of the client attempting to modify someone else's data. All you need to do is change how your code edits isAmeShowing or isAdoshowing data, to do it by client who you're changing or instructing the server to do that. Link to comment
JamesCaeser Posted May 31, 2017 Author Share Posted May 31, 2017 idk, can u help me? this file: https://yadi.sk/d/DiQCsNB63Jh8eL Link to comment
idarrr Posted May 31, 2017 Share Posted May 31, 2017 The problem is on client side code. You are trying to set an element data for another player on client side. Link to comment
Hale Posted May 31, 2017 Share Posted May 31, 2017 Either remove that anti-cheat protection or find a way to update element data via server side (triggerServerEvent) Link to comment
Addlibs Posted June 1, 2017 Share Posted June 1, 2017 If you want to disable this security feature, go into the admin panel, resources tab, double click "adminp" in the list, then set the "securitylevel" settings to 1, or maybe even 0 - as long as its lower than 2, then restart adminp. However, this can expose you to the risk of someone modifying other people's element data so I advise you not to do that. Link to comment
Hale Posted June 1, 2017 Share Posted June 1, 2017 (edited) 2 hours ago, MrTasty said: However, this can expose you to the risk of someone modifying other people's element data so I advise you not to do that. How is that possible nowadays, didn't MTA create its own anti cheat/trainer system? Edited June 1, 2017 by Hale Link to comment
Addlibs Posted June 1, 2017 Share Posted June 1, 2017 9 minutes ago, Hale said: How is that possible nowadays, didn't MTA create its own anti cheat/trainer system? Maybe, but its better not to take chances, imo. 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