28.08.2012, 07:21
I'm trying to make a command that will reconnect everyone but it's not working and I'm getting a few errors..
pawn Код:
CMD:reconnectall(playerid, params[])
{
foreach(Player, i)
if(IsPlayerConnected(i))
new ip[16], string[180];
GetPlayerIp(i, ip, sizeof(i));
print(string);
format(string, sizeof(string), "banip %s", ip);
SetPVarString(i,"reconnect",ip);
ireconnect[i] = 1;
SendRconCommand(string);
return 1;
}