Problems while /respawncars /rac
#1

I just saw a problem in my server console
The problem
Код:
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (13731) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (13731) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (13731) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (13731) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (13731) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (13731) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (13731) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (13731) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (13731) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (13731) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (13731) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (31142) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (31142) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (31142) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (31142) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (31142) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (31142) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (31142) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (31142) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (31142) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (31142) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (31142) Limit: 3000/sec
[23:57:17] [warning] client exceeded 'ackslimit' 127.0.0.1:49570 (31142) Limit: 3000/sec
Code of /respawncars

pawn Код:
dcmd_respawncars(playerid,params[])
{
    #pragma unused params
    if(AccInfo[playerid][Level] >= 5 || IsPlayerAdmin(playerid))
    {
        SendClientMessage(playerid, green, "|- Your have Successfully Respawned all Vehicles! -|");
        GameTextForAll("~n~~n~~n~~n~~n~~n~~r~Vehicles ~g~Respawned!", 3000,3);
       
        for(new cars=0; cars<MAX_VEHICLES; cars++)
        {
            if(!VehicleOccupied(cars))
            {
                SetVehicleToRespawn(cars);
            }
        }
        return 1;
    }
    else return ErrorMessages(playerid, 1);
}
command
/rac
pawn Код:
CMD:rac(playerid, params[])
{
    if(!IsAdmin(playerid, 1)) return SendClientMessage(playerid, COLOR_RED, "You are not admin!");
    new bool:vehicleused[MAX_VEHICLES];
    for(new i=0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
        {
            vehicleused[GetPlayerVehicleID(i)] = true;
        }
    }
    for(new i=1; i < MAX_VEHICLES; i++)
    {
        if(!vehicleused[i])
        {
            SetVehicleToRespawn(i);
        }
    }
    new msg[128];
    format(msg, sizeof(msg), "Admin %s (%d) has respawned all unused vehicles", PlayerName(playerid), playerid);
    SendClientMessageToAll(COLOR_YELLOW, msg);
    return 1;
}
what is the problem?
Reply
#2

Try to increase your ackslimit to 5000, it should work I think
Reply
#3

this will not solve my problem
the message warning don't need to appears up in a hosted server.
Reply
#4

This occurs when you use the command, or starts happening after you've used it? Also, why are you using 2 different command processors? Kind of eliminates the purpose.. I'd stick with ZCMD.

pawn Код:
CMD:respawncars(playerid, params[])
{
    if(AccInfo[playerid][Level] < 5 && !IsPlayerAdmin(playerid)) return ErrorMessages(playerid, 1);

    SendClientMessage(playerid, green, "|- You Have Successfully Respawned All Vehicles! -|");
    GameTextForAll("~n~~n~~n~~n~~n~~n~~r~Vehicles ~g~Respawned!", 3000, 3);
    for(new cars = 1, j = GetVehiclePoolSize(); cars <= j; cars++)
    {
        if(!VehicleOccupied(cars)) SetVehicleToRespawn(cars);
    }
    return 1;
}

CMD:rac(playerid, params[])
{
    if(!IsAdmin(playerid, 1)) return SendClientMessage(playerid, COLOR_RED, "You are not an admin!");
    new bool:vehicleused[MAX_VEHICLES + 1], v, msg[75];
    for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        if(!(v = GetPlayerVehicleID(i))) continue;
        vehicleused[v] = true;
    }
    for(new i = 1, j = GetVehiclePoolSize(); i <= j; i++)
    {
        if(!vehicleused[i]) SetVehicleToRespawn(i);
    }
    format(msg, sizeof(msg), "Admin %s (%d) has respawned all unused vehicles", PlayerName(playerid), playerid);
    SendClientMessageToAll(COLOR_YELLOW, msg);
    return 1;
}
Seeing as the ackslimit is over 13000, I would ignore these warnings because you would get them on any server with those kind of values...
Reply
#5

dcmd in admin system FS
and the ZCMD
in gamemode for respawn cars witch was created by The Vehicle system (CMD:rac)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)