GetPlayerACInfo: Difference between revisions
Jump to navigation
Jump to search
Fernando187 (talk | contribs) (Remove obsolete Requirements section) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Server function}} | {{Server function}} | ||
__NOTOC__ | __NOTOC__ | ||
{{ | {{Deprecated|onPlayerACInfo}} | ||
This function returns anti-cheat info for a player. | |||
This function returns anti-cheat info for a player. The info returned by this function can change over time, so use the server event [[onPlayerACInfo]] instead. | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Line 18: | Line 17: | ||
*'''d3d9Size:''' A number representing the file size 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. | ||
*'''d3d9MD5:''' A string containing the MD5 of any custom d3d9.dll the player may have installed. | *'''d3d9MD5:''' A string containing the MD5 of any custom d3d9.dll the player may have installed. | ||
*'''d3d9SHA256:''' A string containing the SHA256 of any custom d3d9.dll the player may have installed. | *'''d3d9SHA256:''' A string containing the SHA256 of any custom d3d9.dll the player may have installed. | ||
<!-- | |||
==Example== | ==Example== | ||
This example checks getPlayerACInfo for changes every 3 seconds | This example checks getPlayerACInfo for changes every 3 seconds | ||
Line 65: | Line 63: | ||
==Example== | ==Example== | ||
This example allows player serial exceptions for SD # | This example allows player serial exceptions for SD #14 (virtual machines) | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
-- List of serials which are allowed to use virtual machines | -- List of serials which are allowed to use virtual machines | ||
Line 75: | Line 73: | ||
for _,plr in ipairs( getElementsByType("player") ) do | for _,plr in ipairs( getElementsByType("player") ) do | ||
local ACInfo = getPlayerACInfo(plr) | local ACInfo = getPlayerACInfo(plr) | ||
if string.find( ACInfo.DetectedAC, " | if string.find( ACInfo.DetectedAC, "14" ) then | ||
local serial = getPlayerSerial(plr) | local serial = getPlayerSerial(plr) | ||
if not allowVM[serial] then | if not allowVM[serial] then | ||
Line 85: | Line 83: | ||
setTimer( checkPlayersACInfo, 3000, 0 ) | setTimer( checkPlayersACInfo, 3000, 0 ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
--> | |||
==See Also== | ==See Also== | ||
{{ | {{Player functions|server}} |
Latest revision as of 17:12, 7 November 2024
This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. | |
Please use onPlayerACInfo instead. |
This function returns anti-cheat info for a player. The info returned by this function can change over time, so use the server event onPlayerACInfo instead.
Syntax
table getPlayerACInfo( element thePlayer )
OOP Syntax Help! I don't understand this!
- Method: player:getACInfo(...)
- Variable: .ACInfo
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.
- d3d9Size: A number representing the file size of any custom d3d9.dll the player may have installed.
- d3d9MD5: A string containing the MD5 of any custom d3d9.dll the player may have installed.
- d3d9SHA256: A string containing the SHA256 of any custom d3d9.dll the player may have installed.
See Also
- getAlivePlayers
- getDeadPlayers
- getPlayerACInfo
- getPlayerAnnounceValue
- getPlayerCount
- getPlayerIdleTime
- getPlayerIP
- getPlayerVersion
- getRandomPlayer
- isPlayerMuted
- redirectPlayer
- resendPlayerACInfo
- resendPlayerModInfo
- setPlayerAnnounceValue
- setPlayerMuted
- setPlayerScriptDebugLevel
- setPlayerTeam
- setPlayerVoiceBroadcastTo
- setPlayerVoiceIgnoreFrom
- setPlayerWantedLevel
- spawnPlayer
- takePlayerScreenShot
- Shared
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState