Reconnectall command problem
#1

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;
}
Reply
#2

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)