05.03.2012, 01:01
Hello,
I made a cmd /relog with ZCMD but when someone do /relog that player's ip got banned
My script:
I made a cmd /relog with ZCMD but when someone do /relog that player's ip got banned
My script:
pawn Код:
CMD:relog(playerid, params[]) {
new
i = 0,
cmd[32] = "banip "
;
while(++i != 10) {
SendClientMessage(playerid, -1, " ");
}
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Reconnecting...");
GetPlayerIp(playerid, cmd[6], (sizeof cmd - 6));
SetPVarString(playerid, "reconnect", cmd[6]);
SendRconCommand(cmd);
return true;
}