[Ajuda] Public OnPlayerDisconnect
#4

Код:
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;
}
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: 1 Guest(s)