23.09.2008, 12:37
Код:
public OnPlayerDisconnect(playerid, reason) { new gPlayerName[30], str[256]; switch (reason) { case 0: { GetPlayerName(playerid, gPlayerName, 30); format(str, 256, "%s has Leave the Server! (Timeout)", gPlayerName); SendClientMessageToAll(colorwhite, str); } case 1: { GetPlayerName(playerid, gPlayerName, 30); format(str, 256, "%s has Leave the Server! (Leaving)", gPlayerName); SendClientMessageToAll(colorwhite, str); } case 2: { GetPlayerName(playerid, gPlayerName, 30); format(str, 256, "%s has Leave the Server! (Kick/Ban)", gPlayerName); SendClientMessageToAll(colorwhite, str); } } return 1; }
