OnPlayerChangesWorldSpecialProperty
Jump to navigation
Jump to search
Important Note: This event is currently not available for use, as there is no new nightly build yet. Please wait patiently and keep an eye on the page for further updates. |
Parameters
string property, bool enabled
- property: The name of the property
- enabled: The property's state
Source
The source of this event is the player who changed a special property.
Canceling
This event cannot be cancelled.
Example
The example below bans the player if a cheat is activated
local cheats = { ["hovercars"] = true, ["aircars"] = true, ["extrabunny"] = true, ["extrajump"] = true } addEventHandler("onPlayerChangesWorldSpecialProperty", root, function(property, enabled) if not cheats[property] then return end if not enabled then return end banPlayer(source, false, false, true, "Server", "Time to take a permanent break :-)") 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