17.06.2009, 21:38
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
switch(reason)
{
case 0: format(string, sizeof(string), "%s (ID %d) has lost the connection with the server.", PlayerName, playerid);
case 1: format(string, sizeof(string), "%s (ID %d) has left the server.", PlayerName, playerid);
case 2: format(string, sizeof(string), "%s (ID %d) has been kicked/banned form this server.", PlayerName, playerid);
}
SendClientMessageToAll(GREY, string);
return 1;
}