GetPlayerACInfo

From Multi Theft Auto: Wiki
Revision as of 12:46, 13 June 2013 by X86dev (talk | contribs)
Jump to navigation Jump to search

This function returns anti-cheat info for a player. It can be used to script a white/blacklist of custom d3d9.dll files, or a white/blacklist of players with certain anti-cheat codes. The relevant anti-cheat code has to be disabled (or not enabled) in the server mtaserver.conf to be of use here.

[[{{{image}}}|link=|]] Note: The info returned by this function can change over time, so it should be called every few seconds rather than just when the player joins.

Syntax

table getPlayerACInfo( element thePlayer )

Required Arguments

  • thePlayer: The player whose anti-cheat info you want to check.

Returns

Returns a table with the following entries:

  • DetectedAC: A string containing a comma separated list of anti-cheat codes the player has triggered.
  • d3d9MD5: A string containing the MD5 of any custom d3d9.dll the player may have installed.
  • d3d9Size: A number representing the file size of any custom d3d9.dll the player may have installed.

Requirements

Minimum server version 1.3.3-5523
Minimum client version n/a

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version server="1.3.3-5523" />

Example


See Also