Posts: 983
Threads: 98
Joined: Feb 2012
Reputation:
0
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)
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
This used to be possible, but a bug introduced in 0.3x/0.3e made it not work properly anymore.
Posts: 772
Threads: 79
Joined: Dec 2012
Try :-
Not sure if it will work or not.
pawn Код:
CMD:relog(playerid, params[])
{
new targetid;
SetPlayerSkin(targetid, 301);
return 1;
}
Posts: 772
Threads: 79
Joined: Dec 2012
Oh yes.
Hmm i dont think their's any command to relog a player?
EDIT:Added target id.
Posts: 983
Threads: 98
Joined: Feb 2012
Reputation:
0
I'll test and I'll inform you, thanks for the help.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
That'll CRASH a player, NOT make them reconnect.
Posts: 983
Threads: 98
Joined: Feb 2012
Reputation:
0
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!?!
Posts: 772
Threads: 79
Joined: Dec 2012
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.