Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public OnPlayerDisconnect(playerid, reason)
  2. {
  3. new
  4. szString[64],
  5. playerName[MAX_PLAYER_NAME];
  6.  
  7. GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
  8.  
  9. new szDisconnectReason[3][] =
  10. {
  11. "Timeout/Crash",
  12. "Quit",
  13. "Kick/Ban"
  14. };
  15.  
  16. format(szString, sizeof szString, "%s left the server (%s).", playerName, szDisconnectReason[reason]);
  17.  
  18. SendClientMessageToAll(0xC4C4C4FF, szString);
  19. return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement