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.