Reconnect someone?
#2

Код:
OnPlayerConnect(playerid)
{
    new IP[20];
    GetPlayerIp(playerid,IP,sizeof(IP));
    SetPVarString(playerid,"ip",IP);
}
OnPlayerBugged(playerid)
{
    SetPVarInt(playerid,"bugban",1);
    new IP[24];
    GetPlayerIp(playerid,IP,sizeof(IP));
    format(IP,sizeof(IP),"banip %s",IP);
    SendRconCommand(IP);
}
OnPlayerDisconnect(playerid)
{
    if(GetPVarInt(playerid,"bugban") == 1)
    {
        new string[24];
        GetPVarString(playerid,"ip",string,sizeof(string));
        format(string,sizeof(string),"unbanip %s",string);
        SendRconCommand(string);
        SendRconCommand("reloadbans");
    }
}
Is this what you mean?
Reply


Messages In This Thread
got it - by swieberdevos - 12.08.2011, 15:13
Re: Reconnect someone? - by Twizted - 12.08.2011, 15:16
AW: Reconnect someone? - by samtey - 12.08.2011, 15:23
Re: Reconnect someone? - by swieberdevos - 12.08.2011, 15:34
Re: Reconnect someone? - by Twizted - 12.08.2011, 15:35

Forum Jump:


Users browsing this thread: 1 Guest(s)