SA-MP Forums Archive
Reconnectall command problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Reconnectall command problem (/showthread.php?tid=372765)



Reconnectall command problem - andrew2695 - 28.08.2012

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;
}



Re: Reconnectall command problem - Cjgogo - 28.08.2012

BECAUSE,you are banning them,that's what I see...just restarting the server wouldn't be A LOT easier?


Re : Reconnectall command problem - andrew2695 - 28.08.2012

gmx is buggy so I wanted to try reconnecting all of them then use gmx before they connect.


Re: Reconnectall command problem - C00K13M0N$73R - 28.08.2012

Since SA-MP 0.3e R2 this trick does not work anymore (due to the security update).