13.09.2014, 12:30
Bem pessoal o comando e o seguinte o player digita /reconectar ai ele reloga sem sair do samp dentro do proprio jogo tem como alguem me ajudar com isso ?
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;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/relog", true))
{
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;
}
return 0;
}