29.01.2015, 00:23
Код:
public OnPlayerDisconnect(playerid, reason) { SalvarConta(playerid); if(PlayerInfo[playerid][Admin] >= 1) { Delete3DTextLabel(PlayerInfo[playerid][LabelAdmin]); } switch(reason) { case 0: { format(CBDStr, sizeof CBDStr, "[SAIU]: >> %s(%d) Saiu do Servidor (Conexгo/Crash) <<",Nome(playerid),playerid); SendClientMessageToAll(YELLOW,CBDStr); } case 1: { format(CBDStr, sizeof CBDStr, "[SAIU]: >> %s(%d) Saiu do Servidor (Desconectou-se) <<",Nome(playerid),playerid); SendClientMessageToAll(YELLOW,CBDStr); } case 2: { format(CBDStr, sizeof CBDStr, "[SAIU]: >> %s(%d) Saiu do Servidor (Kickado ou Banido) <<",Nome(playerid),playerid); SendClientMessageToAll(YELLOW,CBDStr); } } return 1; }