21.08.2012, 19:52
I made a leave message but it always just says they left,even if they just timeout.I was wondering if someone could help me get different message for if they timeout.
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(string, sizeof string, "%s has left the server. (Crash)", pName);
case 1: format(string, sizeof string, "%s has left the server. (Exit the game)", pName);
case 2: format(string, sizeof string, "%s has left the server. (Kicked/Banned)", pName);
}
SendClientMessageToAll(white, string);