Quote:
Originally Posted by Abagail
Regarding the reconnect that is possible without plug-ins by banning their IP(without kicking).
Example:
pawn Код:
new playerIP[MAX_PLAYERS][32]; new bool: Relogging[MAX_PLAYERS]; CMD:relog(playerid, params[]) { new string[64]; GetPlayerIp(playerid, playerIP[playerid], sizeof(playerIP[playerid])); format(string, sizeof(string), "banip %s", playerIP[playerid])); SendRconCommand(string); Relogging[playerid] = true; return 1; }
public OnPlayerDisconnect(playerid, reason) { if(Relogging[playerid] == true) { format(string, sizeof(string), "unbanip %s", playerIP)); SendRconCommand(string); Relogging[playerid] = false; return 1; } return 1; }
Sorry for my shitting scripting, its quite late here.
|
Maybe I will implement this.