When a player disconnects...
#7

Quote:
Originally Posted by Ragidon
Quote:
Originally Posted by PlayON
Quote:
Originally Posted by Ragidon
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...
Well i'm using textdraws, does it matters?
I will try both, thanks guys

Edit://I don't need the IsPlayerConnected thingy , do i?
Nope. You donґt need to have an IsPlayerConnect. Using textdraws doesn't matter.
One more thing, may you exaplin to what exaclt the IsPlayerConnected does?
I know it checks if the player is connected but more detailed?
Thanks fo such a fast answer.
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)