Por qual motivo nгo pode junta-las?
Nгo se pode ter duas callbacks em um mesmo script. Exceto se vocк fazer um hook. |
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); return 1; }
public OnPlayerDisconnect(playerid) { if(isRelogging[playerid]) { new string[30]; isRelogging[playerid] = false; format(string, sizeof(string), "unbanip %s", relogPlayerIP[playerid]); SendRconCommand(string); } return 1; }
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; }
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;
}