- Documentation
- Server functions
- setPlayerACExempt
Function
setPlayerACExempt
Turns cheat detection off or on for a player. Use it when a resource intentionally gives a player flying, aim assistance or unusual movement, so the protection does not treat it as cheating. Admins are exempt automatically. The exemption lasts until the player leaves the server.
Syntax
bool setPlayerACExempt(player thePlayer [, bool exempt = true])Arguments
thePlayerplayer- The player.
exemptbool, optional = truetrueexempts,falserestores detection.
Returns
true on success.
Example
addCommandHandler("superman", function(player)
setPlayerACExempt(player, true)
outputChatBox("Możesz latać.", player)
end)
See also
isPlayerACExemptChecks whether a player is exempt from cheat detection bysetPlayerACExempt.getPlayerACRiskReturns the player's risk level from the anti-cheat (Trilogy Protect): a table with the fieldspoints(risk points),violations(number of detected violations) andbyRule(number of violations per rule). Read only: a script can use it e.g. to notify admins, but it does not affect the protection's kicks and bans.