10.04.2011, 12:27
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 Left. (Lost Connection)", pname);
case 1: format(string, sizeof(string), "%s Left. (Leaving)", pname);
case 2: format(string, sizeof(string), "%s Left. (Kicked)", pname);
}
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}