06.09.2018, 21:51
I just want a relog command that this command call too fast and when you do /relog the server connect again in 0.5 seconds
( it possible because I saw this /relog command in one server that like this )
(( sorry for my bad english ))
THESE ARE MY EDITIONS:
PAY ATTENTION!
if I change this line:
to:
that doesn't work and just like that you playing normal and you don't anything.
( it possible because I saw this /relog command in one server that like this )
(( sorry for my bad english ))
THESE ARE MY EDITIONS:
PHP код:
if(!strcmp(cmd, "/relog", true)) {
new string[30];
isRelogging[playerid] = true;
GetPlayerIp(playerid, relogPlayerIP[playerid], 17);
format(string, sizeof(string), "banip %s", relogPlayerIP[playerid]);
SetTimerEx("reloging",11000,0,"i",playerid);
SendRconCommand(string);
SetPlayerInterior(playerid, 0);
SetPlayerCameraPos(playerid, 1020.8905, -1782.4042, 90.0785);
SetPlayerCameraLookAt(playerid, 556.1578, -1441.9774, 80.5746);
InterpolateCameraLookAt(playerid, 1020.8905, -1782.4042, 90.0785, 556.1578, -1441.9774, 80.5746, 20000, CAMERA_MOVE);
InterpolateCameraPos(playerid, 1020.8905, -1782.4042, 90.0785, 556.1578, -1441.9774, 80.5746, 25000, CAMERA_MOVE);
GetPlayerTag(playerid);
SendMessage(playerid, COLOR_NITROEX, "Your relog request is proccesing ...");
return 1;
}
PHP код:
new bool: isRelogging[MAX_PLAYERS], relogPlayerIP[MAX_PLAYERS][17];
PHP код:
if(isRelogging[playerid] == true)
{
new string[30];
isRelogging[playerid] = false;
format(string, sizeof(string), "unbanip %s", relogPlayerIP[playerid]);
SCM(playerid, COLOR_RED, string);
SendRconCommand(string);
}
PHP код:
forward reloging(playerid);
public reloging(playerid) {
new string[30];
isRelogging[playerid] = false;
format(string, sizeof(string), "unbanip %s", relogPlayerIP[playerid]);
SendRconCommand(string);
print(string);
}
if I change this line:
PHP код:
SetTimerEx("reloging",11000,0,"i",playerid);
PHP код:
SetTimerEx("reloging",500,0,"i",playerid);