Reconnect cmd???
#10

Quote:
Originally Posted by bookknp
Посмотреть сообщение
Hello, i would ask how to make an reconnect cmd? I have not any idea for it.
Код:
new GetPlayerIP[MAX_PLAYERS][16],bool:paX[MAX_PLAYERS];

CMD:reconnect(playerid, params[]) 
{
    paX[playerid] = true;
    GetPlayerIp(playerid, GetPlayerIP[playerid], 16);
    return BlockIpAddress(GetPlayerIP[playerid],1000*6000);
}

public OnPlayerDisconnect(playerid, reason)
 {
   if(paX[playerid] == true) UnBlockIpAddress(GetPlayerIP[playerid]);
   paX[playerid] = false;
   GetPlayerIP[playerid][0] = EOS;
   return true;
}
Reply


Messages In This Thread
Reconnect cmd??? - by bookknp - 27.03.2018, 00:30
Re: Reconnect cmd??? - by oSAINTo - 27.03.2018, 00:32
Re: Reconnect cmd??? - by bookknp - 27.03.2018, 00:37
Re: Reconnect cmd??? - by oSAINTo - 27.03.2018, 00:44
Re: Reconnect cmd??? - by bookknp - 27.03.2018, 00:50
Re: Reconnect cmd??? - by UFF - 27.03.2018, 02:05
Re: Reconnect cmd??? - by bookknp - 27.03.2018, 03:15
Re: Reconnect cmd??? - by UFF - 27.03.2018, 03:54
Re: Reconnect cmd??? - by bookknp - 27.03.2018, 12:56
Re: Reconnect cmd??? - by ForCop - 27.03.2018, 13:46

Forum Jump:


Users browsing this thread: 1 Guest(s)