From Multi Theft Auto: Wiki
Revision as of 07:25, 26 June 2010 by ZZiGGi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page requires local translation. If page will remain not translated in reasonable period of time it would be deleted.
Please clarify what language it should be translated to.

Это событие вызывается, когда разбанивают.


ban theBan
  • theBan : The ban that will be removed.


The source of this event is the element that was responsible for the unbanning. If no responsible was specified, the source is the global root element.

Cancel effect

If this event is canceled, the requested unban is not performed.


This example does...

root = getRootElement()

function announceUnban( theBan )
	if getElementType( source ) then --Check if a player unbanned the IP/Serial
		outputChatBox( getPlayerName( source ) .. " unbanned " .. ( getBanSerial(theBan) or getBanIP(theBan) ) ) --Output to the chatbox saying the player has unbanned the IP/Serial

addEventHandler( "onUnban", root, announceUnban ) --Adds the event handler for 'onUnban'

See Also

RU/Server events

Event functions