Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onPlayerPart(player, reason)
- {
- switch( reason )
- {
- case PARTREASON_QUIT:
- case PARTREASON_DISCONNECTED:
- reason = "has left the game.";
- break;
- case PARTREASON_KICKED:
- case PARTREASON_KICKEDBANNED:
- case PARTREASON_BANNED:
- reason = "has been kicked from the game.";
- break;
- case PARTREASON_TIMEOUT:
- reason = "timed out.";
- break;
- case PARTREASON_CRASHED:
- reason = "crashed.";
- break;
- }
- Message("[#CACA02]"+player.Name+" " + reason);
- print("[PART] ["+player.ID+"] [ "+player.Name+" ] IP: [ "+player.IP+" ] UID: [ "+player.UniqueID+" ]");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement