PlayerQuit: Difference between revisions
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
* '''exitType ''' - exit type from the server: | * '''exitType ''' - exit type from the server: | ||
**disconnect | **disconnect | ||
timeout | **timeout | ||
kicked | **kicked | ||
* '''reason''' - reason of quit from the server. | * '''reason''' - reason of quit from the server. | ||
Revision as of 21:37, 27 December 2016
This event is triggered when a player quit from the server.
Parameters
- player - player, which quit from the server.
- exitType - exit type from the server:
- disconnect
- timeout
- kicked
- reason - reason of quit from the server.
Example
function playerJoinHandler(player) {
console.log(player.name + " joined to server.");
}
mp.events.add(
{
"playerQuit": playerJoinHandler
});