OnPlayerChangesProtectedData: Difference between revisions
Jump to navigation
Jump to search
(Fix URL) |
Tag: Rollback |
(One intermediate revision by one other user not shown) | |
(No difference)
|
Latest revision as of 07:56, 17 December 2024
Parameters
- element: The affected element.
- key: The name of the element data entry that has changed.
- value: The value that the player sends.
Source
The source of this event is the player who changes protected element data.
Example
The below example will ban all players who are trying to change protected element data.
function processPlayerElementDataHack() addBan(source, "Element data hacking attempt") end addEventHandler("onPlayerChangesProtectedData", root, processPlayerElementDataHack)
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