Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerDisconnect(playerid, reason)
- {
- new
- szString[64],
- playerName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
- new szDisconnectReason[3][] =
- {
- "Timeout/Crash",
- "Quit",
- "Kick/Ban"
- };
- format(szString, sizeof szString, "%s left the server (%s).", playerName, szDisconnectReason[reason]);
- SendClientMessageToAll(0xC4C4C4FF, szString);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement