OnPlayerACInfo: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Server event}} This event is triggered when a player trips anti-cheat detections. {{Note|Any resource using this event should call resendPlayerACInfo for each...") |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server event}} | {{Server event}} | ||
{{New items|3.0152|1.5.1-7633| | |||
This event is triggered when a player trips anti-cheat detections. | This event is triggered when a player trips anti-cheat detections. | ||
}} | |||
{{Note|Any resource using this event should call [[resendPlayerACInfo]] for each player in [[onResourceStart]]}} | {{Note|Any resource using this event should call [[resendPlayerACInfo]] for each player in [[onResourceStart]]}} | ||
==Parameters== | ==Parameters== |
Revision as of 21:21, 3 December 2015
This event is triggered when a player trips anti-cheat detections.
Parameters
table acCodelist, int d3dSize, string d3dMd5, string d3dSha256
- acCodelist: A table of tripped AC codes represented as numbers
- d3dsize: File size of detected d3d9.dll
- d3dmd5: MD5 of detected d3d9.dll
- d3dsha356: SHA256 of detected d3d9.dll
Source
The source of this event is the player
Example
This example prints all information into the chatbox
function handleOnPlayerACInfo( acCodelist, d3dSize, d3dMd5, d3dSha256 ) outputChatBox( "ACInfo for " .. getPlayerName(source) .. " acCodelist:" .. table.concat(acCodelist,",") .. " d3dSize:" .. d3dSize .. " d3dSha256:" .. d3dSha256 ) end addEventHandler( "onPlayerACInfo", root, handleOnPlayerACInfo ) -- Ensure no one gets missed when the resource is (re)started addEventHandler( "onResourceStart", resourceRoot, function() for _,plr in ipairs( getElementsByType("player") ) do resendPlayerACInfo( plr ) end end )
See Also
Player events
- onPlayerACInfo
- onPlayerBan
- onPlayerChangeNick
- onPlayerChat
- onPlayerClick
- onPlayerCommand
- onPlayerConnect
- onPlayerContact
- onPlayerDamage
- onPlayerJoin
- onPlayerLogin
- onPlayerLogout
- onPlayerMarkerHit
- onPlayerMarkerLeave
- onPlayerModInfo
- onPlayerMute
- onPlayerNetworkStatus
- onPlayerPickupHit
- onPlayerPickupLeave
- onPlayerPickupUse
- onPlayerPrivateMessage
- onPlayerQuit
- onPlayerScreenShot
- onPlayerSpawn
- onPlayerStealthKill
- onPlayerTarget
- onPlayerUnmute
- onPlayerVehicleEnter
- onPlayerVehicleExit
- onPlayerVoiceStart
- onPlayerVoiceStop
- onPlayerWasted
- onPlayerWeaponFire
- onPlayerWeaponSwitch
Event functions
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled