Advertisement
Guest User

Untitled

a guest
May 10th, 2015
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. function onPlayerPart(player, reason)
  2. {
  3. switch( reason )
  4. {
  5. case PARTREASON_QUIT:
  6. case PARTREASON_DISCONNECTED:
  7. reason = "has left the game.";
  8. break;
  9. case PARTREASON_KICKED:
  10. case PARTREASON_KICKEDBANNED:
  11. case PARTREASON_BANNED:
  12. reason = "has been kicked from the game.";
  13. break;
  14. case PARTREASON_TIMEOUT:
  15. reason = "timed out.";
  16. break;
  17. case PARTREASON_CRASHED:
  18. reason = "crashed.";
  19. break;
  20. }
  21. Message("[#CACA02]"+player.Name+" " + reason);
  22. print("[PART] ["+player.ID+"] [ "+player.Name+" ] IP: [ "+player.IP+" ] UID: [ "+player.UniqueID+" ]");
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement