Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- public OnPlayerDisconnect(playerid, reason)
- {
- new pName[24], reasonstr[9], str[56];
- GetPlayerName(playerid, pName, sizeof(pName));
- switch (reason)
- {
- case 0: reasonstr = "Timeout";
- case 1: reasonstr = "Leaving";
- case 2: reasonstr = "Kick/Ban";
- }
- format(str, sizeof(str), "%s has left the Server. (%s)", pName, reasonstr);
- SendClientMessageToAll(0xFFFFFFAA, str);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment