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


Messages In This Thread
Problems while /respawncars /rac - by Toxik - 18.08.2015, 22:03
Re: Problems while /respawncars /rac - by brandypol - 18.08.2015, 22:48
Re: Problems while /respawncars /rac - by Toxik - 18.08.2015, 22:53
Re: Problems while /respawncars /rac - by Threshold - 19.08.2015, 10:33
Re: Problems while /respawncars /rac - by Toxik - 19.08.2015, 11:55

Forum Jump:


Users browsing this thread: 2 Guest(s)