relog command
#1

Ey, is it possible to create a command that if an adminstrator uses it on a certain player it makes him disconnect from the server and connect without quiting from the game? (heading to client and re-connect from there)
Reply
#2

This used to be possible, but a bug introduced in 0.3x/0.3e made it not work properly anymore.
Reply
#3

Try :-
Not sure if it will work or not.
pawn Код:
CMD:relog(playerid, params[])
{
     new targetid;
     SetPlayerSkin(targetid, 301);
     return 1;
}
Reply
#4

Quote:
Originally Posted by Avi Raj
Посмотреть сообщение
Try :-
Not sure if it will work or not.
pawn Код:
CMD:relog(playerid, params[])
{
     SetPlayerSkin(playerid, 301);
     return 1;
}
He doesn't wants a playing crashing command, he wants a relog command.
Also, it will crash the player who uses the command, not the playerid/name specified lol.
Reply
#5

Oh yes.
Hmm i dont think their's any command to relog a player?

EDIT:Added target id.
Reply
#6

I'll test and I'll inform you, thanks for the help.
Reply
#7

That'll CRASH a player, NOT make them reconnect.
Reply
#8

Guys I believe that the reconnecting feature is now exist since I saw a server that owns that feature, can anyone help me finding it!?!
Reply
#9

It does exist - I said that. It just doesn't work 100% correctly due to a newly introduced bug.

A simple ****** search could have found you this answer in 5 seconds, instead of 27 minutes.

http://lmgtfy.com/?q=samp+force+reconnect
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)