relog command
#10

pawn Код:
new bool: isRelogging[MAX_PLAYERS], relogPlayerIP[MAX_PLAYERS][17];

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

    return 1;
}

COMMAND:relog(playerid, params[])
{
    new string[30];
    isRelogging[playerid] = true;
    GetPlayerIp(playerid, relogPlayerIP[playerid], 17);
    format(string, sizeof(string), "banip %s", relogPlayerIP[playerid]);
    SendRconCommand(string);
    SendClientMessage(playerid, -1, "Reconnecting...");
    return 1;
}
By SuperViper : Link.
Reply


Messages In This Thread
relog command - by Stanford - 25.04.2013, 14:25
Re: relog command - by MP2 - 25.04.2013, 14:35
Re: relog command - by Avi Raj - 25.04.2013, 14:42
Re: relog command - by [MM]Eminem - 25.04.2013, 14:45
Re: relog command - by Avi Raj - 25.04.2013, 14:47
Re: relog command - by Stanford - 25.04.2013, 14:49
Re: relog command - by MP2 - 25.04.2013, 14:50
Re: relog command - by Stanford - 25.04.2013, 14:51
Re: relog command - by MP2 - 25.04.2013, 14:55
Re: relog command - by Avi Raj - 25.04.2013, 14:57

Forum Jump:


Users browsing this thread: 3 Guest(s)