When a player disconnects...
#2

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
  new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
  GetPlayerName(playerid, pname, sizeof(pname));
  switch(reason)
  {
    case 0: format(string, sizeof(string), "%s has left the server. (Lost Connection)", pname);
    case 1: format(string, sizeof(string), "%s has left the server. (Leaving)", pname);
    case 2: format(string, sizeof(string), "%s has left the server. (Kicked)", pname);
  }
  SendClientMessageToAll(0xAAAAAAAA, string);
  return 1;
}
That actually works to me...
Reply


Messages In This Thread
When a player disconnects... - by Zh3r0 - 02.04.2010, 11:57
Re: When a player disconnects... - by Ragidon - 02.04.2010, 12:04
Re: When a player disconnects... - by ZeRo_HUN - 02.04.2010, 12:05
Re: When a player disconnects... - by Zh3r0 - 02.04.2010, 12:08
Re: When a player disconnects... - by Carlton - 02.04.2010, 12:09
Re: When a player disconnects... - by Ragidon - 02.04.2010, 12:12
Re: When a player disconnects... - by Zh3r0 - 02.04.2010, 12:13
Re: When a player disconnects... - by Ragidon - 02.04.2010, 12:16
Re: When a player disconnects... - by Zh3r0 - 02.04.2010, 12:27
Re: When a player disconnects... - by Ragidon - 02.04.2010, 12:28

Forum Jump:


Users browsing this thread: 1 Guest(s)