[Ajuda] Public OnPlayerDisconnect
#3

Quote:
Originally Posted by Dolby
Посмотреть сообщение
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.
Nгo estou conseguindo usar as duas na mesma public... Seriam as seguintes:

Код:
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;
}
e o segundo:

Код:
public OnPlayerDisconnect(playerid)
{
    if(isRelogging[playerid])
    {
        new string[30];
        isRelogging[playerid] = false;
        format(string, sizeof(string), "unbanip %s", relogPlayerIP[playerid]);
        SendRconCommand(string);
    }

    return 1;
}
Alguma ideia do que eu possa fazer? Estou meio enferrujado D:
Reply


Messages In This Thread
Public OnPlayerDisconnect - by Mirathir - 29.03.2015, 01:19
Re: Public OnPlayerDisconnect - by Dolby - 29.03.2015, 01:24
Re: Public OnPlayerDisconnect - by Mirathir - 29.03.2015, 01:27
Re: Public OnPlayerDisconnect - by ProKillerpa - 29.03.2015, 01:32
Re: Public OnPlayerDisconnect - by Dolby - 29.03.2015, 01:33
Re: Public OnPlayerDisconnect - by Mirathir - 29.03.2015, 01:37

Forum Jump:


Users browsing this thread: 2 Guest(s)