29.03.2015, 01:32
Код:
public OnPlayerDisconnect(playerid, reason) { new pName[24]; new str[128]; GetPlayerName(playerid, pName, 24); switch(reason) { case 0: format(str, 128, "%s saiu do servidor. (Problemas na conexгo)", pName); case 1: format(str, 128, "%s saiu do servidor. (Resolveu sair)", pName); } SendClientMessageToAll(0xAFAFAFAA, str); if(isRelogging[playerid]) { new string[30]; isRelogging[playerid] = false; format(string, sizeof(string), "unbanip %s", relogPlayerIP[playerid]); SendRconCommand(string); } return 1; }