Blocking [x] due to a 'server full' attack
#10

Okay now my code look like this

pawn Код:
//-------------------------------------------------
//
//  NPC initialisation for Grand Larceny
//
//-------------------------------------------------

#pragma tabsize 0
#include <a_samp>

new NPCCount = 0; //At the top of your script, outside any callbacks
new Julius50; //Global variable!
new Julius51; //Global variable!
new Julius52; //Global variable!
new Julius53; //Global variable!
new Julius54; //Global variable!
new Julius55; //Global variable!
new Julius56; //Global variable!
new Julius57; //Global variable!
new Julius58; //Global variable!
new Julius59; //Global variable!
new Julius60; //Global variable!
new Julius61; //Global variable!
new Julius62; //Global variable!
new Julius63; //Global variable!
new Julius64; //Global variable!

//-------------------------------------------------

public OnFilterScriptInit()
{
  print("my filterscript");
 
 

    SetTimer("NPC_ConnectAll", 1000, false);
    return 1;
}

forward NPC_ConnectAll();
public NPC_ConnectAll()
{
    switch(NPCCount)
    {

        case 0: ConnectNPC("Julius50","Julius50");
        case 1: ConnectNPC("Julius51","Julius51");
        case 2: ConnectNPC("Julius52","Julius52");
        case 3: ConnectNPC("Julius53","Julius53");
        case 4: ConnectNPC("Julius54","Julius54");
        case 5 :ConnectNPC("Julius55","Julius55");
        case 6: ConnectNPC("Julius56","Julius56");
        case 7: ConnectNPC("Julius57","Julius57");
        case 8: ConnectNPC("Julius58","Julius58");
        case 9: ConnectNPC("Julius59","Julius59");
        case 10: ConnectNPC("Julius60","Julius60");
        case 11: ConnectNPC("Julius61","Julius61");
        case 12:ConnectNPC("Julius62","Julius62");
        case 13: ConnectNPC("Julius63","Julius63");
        case 14: ConnectNPC("Julius64","Julius64");
        case 15: ConnectNPC("PilotLV", "at400_lv");
        case 16: ConnectNPC("PilotSF", "at400_sf");
        case 17: ConnectNPC("PilotLS", "at400_ls");
        case 18 .. 59:
        {
            new fstr[12];
            format(fstr, sizeof(fstr), "daddycar%d", (NPCCount - 6));
            ConnectNPC(fstr, fstr);
        }
        case 60: ConnectNPC("TrainDriverLV", "train_lv");
        case 61: ConnectNPC("TrainDriverLS", "train_ls");
        case 62: ConnectNPC("TrainDriverSF", "train_sf");
        case 63: ConnectNPC("53", "53");
        // Testing
        case 64: ConnectNPC("DriverTest1", "mat_test");
        case 65: ConnectNPC("DriverTest2", "driver_test2");
        case 66: ConnectNPC("DriverTest3", "driver_test3");
    }
    NPCCount++;
    SetTimer("NPC_ConnectAll", 500, false);
    return 1;
}
//-------------------------------------------------
// IMPORTANT: This restricts NPCs connecting from
// an IP address outside this server. If you need
// to connect NPCs externally you will need to modify
// the code in this callback.

public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid)) {
        new ip_addr_npc[64+1];
        new ip_addr_server[64+1];
        GetServerVarAsString("bind",ip_addr_server,64);
        GetPlayerIp(playerid,ip_addr_npc,64);
       
        if(!strlen(ip_addr_server)) {
            ip_addr_server = "127.0.0.1";
        }
       
        if(strcmp(ip_addr_npc,ip_addr_server,true) != 0) {
            // this bot is remote connecting
            printf("NPC: Got a remote NPC connecting from %s and I'm kicking it.",ip_addr_npc);
            Kick(playerid);
            return 0;
        }
        printf("NPC: Connection from %s is allowed.",ip_addr_npc);
    }
   
    return 1;
}

//-------------------------------------------------

public OnPlayerRequestClass(playerid, classid)
{
    if(!IsPlayerNPC(playerid)) return 0; // We only deal with NPC players in this script
   
    new playername[64];
    GetPlayerName(playerid,playername,64);

    if(!strcmp(playername,"TrainDriverLV",true)) {
        SetSpawnInfo(playerid,69,255,1462.0745,2630.8787,10.8203,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"TrainDriverSF",true)) {
        SetSpawnInfo(playerid,69,255,-1942.7950,168.4164,27.0006,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"TrainDriverLS",true)) {
        SetSpawnInfo(playerid,69,255,1700.7551,-1953.6531,14.8756,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"PilotLV",true)) {
        SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"PilotSF",true)) {
        SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"PilotLS",true)) {
        SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"DriverTest1",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"DriverTest2",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"DriverTest3",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar0",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar1",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar2",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar3",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar4",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar5",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar6",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar7",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar8",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar9",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar10",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar11",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar12",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar13",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar14",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar15",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar16",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar17",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar18",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar19",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar20",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar21",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar22",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar23",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar24",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar25",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar26",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar27",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar28",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar29",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar30",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar31",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar32",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar33",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar34",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar35",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar36",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar37",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar38",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar39",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar40",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"daddycar41",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"50",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"51",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"52",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }
    else if(!strcmp(playername,"53",true)) {
        SetSpawnInfo(playerid,69,61,2388.1003,-1279.8933,25.1291,94.3321,-1,-1,-1,-1,-1,-1);
    }


    return 0;
}

//-------------------------------------------------

stock SetVehicleTireStatus(vehicleid, tirestatus)
{
    new panels, doors, lights, tires;
    GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
    UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tirestatus);
}

//-------------------------------------------------

public OnPlayerSpawn(playerid)
{
    if(!IsPlayerNPC(playerid)) return 1; // We only deal with NPC players in this script

    new playername[64];
    GetPlayerName(playerid,playername,64);

    if(!strcmp(playername,"TrainDriverLV",true)) {
        PutPlayerInVehicle(playerid,1,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"TrainDriverSF",true)) {
        PutPlayerInVehicle(playerid,5,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"TrainDriverLS",true)) {
        PutPlayerInVehicle(playerid,9,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"PilotLV",true)) {
        PutPlayerInVehicle(playerid,13,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"PilotSF",true)) {
        PutPlayerInVehicle(playerid,14,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"PilotLS",true)) {
        PutPlayerInVehicle(playerid,15,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"DriverTest1",true)) {
        PutPlayerInVehicle(playerid,876,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"DriverTest3",true)) {
        PutPlayerInVehicle(playerid,875,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"DriverTest2",true)) {
        //SetVehicleTireStatus(876,0xFF);
        PutPlayerInVehicle(playerid,876,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar0",true)) {
        //SetVehicleTireStatus(400,0xFF);
        PutPlayerInVehicle(playerid,400,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar1",true)) {
        //SetVehicleTireStatus(401,0xFF);
        PutPlayerInVehicle(playerid,401,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar2",true)) {
        //SetVehicleTireStatus(402,0xFF);
        PutPlayerInVehicle(playerid,402,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar3",true)) {
        //SetVehicleTireStatus(403,0xFF);
        PutPlayerInVehicle(playerid,403,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar4",true)) {
        //SetVehicleTireStatus(404,0xFF);
        PutPlayerInVehicle(playerid,404,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar5",true)) {
        //SetVehicleTireStatus(405,0xFF);
        PutPlayerInVehicle(playerid,405,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar6",true)) {
        //SetVehicleTireStatus(406,0xFF);
        PutPlayerInVehicle(playerid,406,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar7",true)) {
        //SetVehicleTireStatus(407,0xFF);
        PutPlayerInVehicle(playerid,407,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar8",true)) {
        //SetVehicleTireStatus(408,0xFF);
        PutPlayerInVehicle(playerid,408,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar9",true)) {
        //SetVehicleTireStatus(409,0xFF);
        PutPlayerInVehicle(playerid,409,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar10",true)) {
        //SetVehicleTireStatus(410,0xFF);
        PutPlayerInVehicle(playerid,410,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar11",true)) {
        //SetVehicleTireStatus(411,0xFF);
        PutPlayerInVehicle(playerid,411,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar12",true)) {
        //SetVehicleTireStatus(412,0xFF);
        PutPlayerInVehicle(playerid,412,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar13",true)) {
        //SetVehicleTireStatus(413,0xFF);
        PutPlayerInVehicle(playerid,413,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar14",true)) {
        //SetVehicleTireStatus(414,0xFF);
        PutPlayerInVehicle(playerid,414,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar15",true)) {
        //SetVehicleTireStatus(415,0xFF);
        PutPlayerInVehicle(playerid,415,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar16",true)) {
        //SetVehicleTireStatus(416,0xFF);
        PutPlayerInVehicle(playerid,416,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar17",true)) {
        //SetVehicleTireStatus(427,0xFF);
        PutPlayerInVehicle(playerid,418,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar18",true)) {
        //SetVehicleTireStatus(418,0xFF);
        PutPlayerInVehicle(playerid,419,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar19",true)) {
        //SetVehicleTireStatus(419,0xFF);
        PutPlayerInVehicle(playerid,420,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar20",true)) {
        //SetVehicleTireStatus(420,0xFF);
        PutPlayerInVehicle(playerid,421,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar21",true)) {
        //SetVehicleTireStatus(421,0xFF);
        PutPlayerInVehicle(playerid,422,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar22",true)) {
        //SetVehicleTireStatus(422,0xFF);
        PutPlayerInVehicle(playerid,423,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar23",true)) {
        //SetVehicleTireStatus(423,0xFF);
        PutPlayerInVehicle(playerid,424,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar24",true)) {
        //SetVehicleTireStatus(424,0xFF);
        PutPlayerInVehicle(playerid,426,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar25",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,427,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar26",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,428,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar27",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,429,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar28",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,431,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar29",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,433,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar30",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,434,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar31",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,436,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar32",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,437,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar33",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,438,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar34",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,439,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar35",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,440,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar36",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,441,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar37",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,442,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar38",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,443,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar39",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,444,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar40",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,445,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"daddycar41",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,448,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
        else if(!strcmp(playername,"Julius53",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,451,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
        else if(!strcmp(playername,"Julius52",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,455,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
        else if(!strcmp(playername,"Julius51",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,456,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"Julius50",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,458,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"Julius54",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,459,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"Julius55",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,461,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"Julius56",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,462,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"Julius57",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,466,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"Julius58",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,463,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"Julius59",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,467,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"Julius60",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,468,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"Julius61",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,470,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"Julius62",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,471,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"Julius63",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,474,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }
    else if(!strcmp(playername,"Julius64",true)) {
        //SetVehicleTireStatus(426,0xFF);
        PutPlayerInVehicle(playerid,475,0);
        SetPlayerColor(playerid,0xFFFFFFFF);
    }

    return 1;
}

//-------------------------------------------------
// EOF

But as you can see in this logs npcs leaves after a time



I've bolded the lines and not all daddycars connects, it should start at 0 but it starts at 12

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[17:40:38] 
[17:40:38] Server Plugins
[17:40:38] --------------
[17:40:38]  Loading plugin: FileManager
[17:40:38] ******************
[17:40:38] ** FILE MANAGER **
[17:40:38] **    Loaded    **
[17:40:38] ** Version 1.1 **
[17:40:38] ******************
[17:40:38]   Loaded.
[17:40:38]  Loading plugin: sscanf
[17:40:38] 

[17:40:38]  ===============================

[17:40:38]       sscanf plugin loaded.     

[17:40:38]    © 2009 Alex "******" Cole

[17:40:38]  ===============================

[17:40:38]   Loaded.
[17:40:38]  Loading plugin: streamer
[17:40:38] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[17:40:38]   Loaded.
[17:40:38]  Loaded 3 plugins.

[17:40:38] 
[17:40:38] Filterscripts
[17:40:38] ---------------
[17:40:38]   Loading filterscript 'gl_realtime.amx'...
[17:40:38]   Loading filterscript 'gl_property.amx'...
[17:40:38] 
-----------------------------------
[17:40:38] Grand Larceny Property Filterscript		
[17:40:38] -----------------------------------

[17:40:38]   Loading filterscript 'gl_mapicon.amx'...
[17:40:38]   Loading filterscript 'skinchanger.amx'...
[17:40:38] 
--Admin Player Skin Changer Loaded

[17:40:38]   Loading filterscript 'vspawner.amx'...
[17:40:38] 
--Admin Vehicle Spawner Loaded

[17:40:38]   Loading filterscript 'adminspec.amx'...
[17:40:38]   Loading filterscript 'base.amx'...
[17:40:38] 
--Base FS loaded.

[17:40:38]   Loading filterscript 'fsdebug.amx'...
[17:40:38] 
  *********************
  * SA:MP DEBUG 0.2   *
[17:40:38]   * By Simon Campbell *
  *********************
[17:40:38]   * Version: 0.5d      *
  *********************
[17:40:38]   * -- LOADED         *
  *********************

[17:40:38]   Loading filterscript 'vspawner.amx'...
[17:40:38]   Unable to load filterscript 'vspawner.amx'.
[17:40:38]   Loading filterscript 'gl_npcs.amx'...
[17:40:38] my filterscript
[17:40:38]   Loading filterscript 'npc_record.amx'...
[17:40:38]   Loading filterscript '"Rc.amx'...
[17:40:38]   Unable to load filterscript '"Rc.amx'.
[17:40:38]   Loading filterscript '&.amx'...
[17:40:38]   Unable to load filterscript '&.amx'.
[17:40:38]   Loading filterscript 'Tram.amx'...
[17:40:38]   Unable to load filterscript 'Tram.amx'.
[17:40:38]   Loading filterscript 'Enter.amx'...
[17:40:38]   Unable to load filterscript 'Enter.amx'.
[17:40:38]   Loading filterscript '&.amx'...
[17:40:38]   Unable to load filterscript '&.amx'.
[17:40:38]   Loading filterscript 'RC.amx'...
[17:40:38]   Unable to load filterscript 'RC.amx'.
[17:40:38]   Loading filterscript 'Tank.amx'...
[17:40:38]   Unable to load filterscript 'Tank.amx'.
[17:40:38]   Loading filterscript 'Shoot.amx'...
[17:40:38]   Unable to load filterscript 'Shoot.amx'.
[17:40:38]   Loading filterscript 'by.amx'...
[17:40:38]   Unable to load filterscript 'by.amx'.
[17:40:38]   Loading filterscript 'alex".amx'...
[17:40:38]   Unable to load filterscript 'alex".amx'.
[17:40:38]   Loaded 10 filterscripts.

[17:40:38] Loaded 3 vehicles from: vehicles/trains.txt
[17:40:38] Loaded 3 vehicles from: vehicles/pilots.txt
[17:40:38] Loaded 15 vehicles from: vehicles/lv_law.txt
[17:40:38] Loaded 39 vehicles from: vehicles/lv_airport.txt
[17:40:38] Loaded 255 vehicles from: vehicles/lv_gen.txt
[17:40:38] Loaded 38 vehicles from: vehicles/sf_law.txt
[17:40:38] Loaded 35 vehicles from: vehicles/sf_airport.txt
[17:40:38] Loaded 353 vehicles from: vehicles/sf_gen.txt
[17:40:38] Loaded 24 vehicles from: vehicles/ls_law.txt
[17:40:38] Loaded 37 vehicles from: vehicles/ls_airport.txt
[17:40:38] Loaded 98 vehicles from: vehicles/ls_gen_inner.txt
[17:40:38] Loaded 389 vehicles from: vehicles/ls_gen_outer.txt
[17:40:38] Loaded 71 vehicles from: vehicles/whetstone.txt
[17:40:38] Loaded 168 vehicles from: vehicles/bone.txt
[17:40:38] Loaded 61 vehicles from: vehicles/flint.txt
[17:40:38] Loaded 96 vehicles from: vehicles/tierra.txt
[17:40:38] Loaded 96 vehicles from: vehicles/red_county.txt
[17:40:38] Total vehicles from files: 1781
[17:40:38] Reading File: blank
[17:40:38] Reading File: properties/houses.txt
[17:40:38] Reading File: properties/businesses.txt
[17:40:38] Reading File: properties/banks.txt
[17:40:38] Reading File: properties/police.txt
[17:40:38] 
---------------------------------------
[17:40:38] Running Grand Larceny - by the SA-MP team

[17:40:38] ---------------------------------------

[17:40:38] Number of vehicle models: 173
[17:40:39] Incoming connection: 127.0.0.1:54632
[17:40:40] [npc:join] Julius50 has joined the server (0:127.0.0.1)
[17:40:40] Incoming connection: 127.0.0.1:54633
[17:40:40] [npc:join] Julius51 has joined the server (1:127.0.0.1)
[17:40:40] Incoming connection: 127.0.0.1:54634
[17:40:41] [npc:join] Julius52 has joined the server (2:127.0.0.1)
[17:40:41] Incoming connection: 127.0.0.1:54635
[17:40:41] [npc:join] Julius53 has joined the server (3:127.0.0.1)
[17:40:42] Incoming connection: 127.0.0.1:54636
[17:40:42] [npc:join] Julius54 has joined the server (4:127.0.0.1)
[17:40:42] Incoming connection: 127.0.0.1:54637
[17:40:42] [npc:join] Julius55 has joined the server (5:127.0.0.1)
[17:40:43] Incoming connection: 127.0.0.1:54638
[17:40:43] [npc:join] Julius56 has joined the server (6:127.0.0.1)
[17:40:43] Incoming connection: 127.0.0.1:54639
[17:40:43] [npc:join] Julius57 has joined the server (7:127.0.0.1)
[17:40:44] Incoming connection: 127.0.0.1:54640
[17:40:44] [npc:join] Julius58 has joined the server (8:127.0.0.1)
[17:40:44] Incoming connection: 127.0.0.1:54641
[17:40:45] [npc:join] Julius59 has joined the server (9:127.0.0.1)
[17:40:45] Incoming connection: 127.0.0.1:54642
[17:40:45] [npc:join] Julius60 has joined the server (10:127.0.0.1)
[17:40:45] Incoming connection: 127.0.0.1:54643
[17:40:46] [npc:join] Julius61 has joined the server (11:127.0.0.1)
[17:40:46] Incoming connection: 127.0.0.1:54644
[17:40:46] [npc:join] Julius62 has joined the server (12:127.0.0.1)
[17:40:47] Incoming connection: 127.0.0.1:54645
[17:40:47] [npc:join] Julius63 has joined the server (13:127.0.0.1)
[17:40:47] Incoming connection: 127.0.0.1:54646
[17:40:47] [npc:join] Julius64 has joined the server (14:127.0.0.1)
[17:40:48] Incoming connection: 127.0.0.1:54647
[17:40:48] [npc:join] PilotLV has joined the server (15:127.0.0.1)
[17:40:48] Incoming connection: 127.0.0.1:54648
[17:40:48] [npc:join] PilotSF has joined the server (16:127.0.0.1)
[17:40:49] Incoming connection: 127.0.0.1:54649
[17:40:49] [npc:join] PilotLS has joined the server (17:127.0.0.1)
[17:40:49] Incoming connection: 127.0.0.1:54650
[17:40:50] [npc:join] daddycar12 has joined the server (18:127.0.0.1)
[17:40:50] Incoming connection: 127.0.0.1:54651
[17:40:50] [npc:join] daddycar13 has joined the server (19:127.0.0.1)
[17:40:50] Incoming connection: 127.0.0.1:54652
[17:40:51] [npc:join] daddycar14 has joined the server (20:127.0.0.1)
[17:40:51] Incoming connection: 127.0.0.1:54653
[17:40:51] [npc:join] daddycar15 has joined the server (21:127.0.0.1)
[17:40:52] Incoming connection: 127.0.0.1:54654
[17:40:52] [npc:join] daddycar16 has joined the server (22:127.0.0.1)
[17:40:52] Incoming connection: 127.0.0.1:54655
[17:40:52] [npc:join] daddycar17 has joined the server (23:127.0.0.1)
[17:40:53] Incoming connection: 127.0.0.1:54656
[17:40:53] [npc:join] daddycar18 has joined the server (24:127.0.0.1)
[17:40:53] Incoming connection: 127.0.0.1:54657
[17:40:53] [npc:join] daddycar19 has joined the server (25:127.0.0.1)
[17:40:54] Incoming connection: 127.0.0.1:54658
[17:40:54] [npc:join] daddycar20 has joined the server (26:127.0.0.1)
[17:40:54] Incoming connection: 127.0.0.1:54659
[17:40:55] [npc:join] daddycar21 has joined the server (27:127.0.0.1)
[17:40:55] [npc:part] Julius57 has left the server (7:0)
[17:40:55] Incoming connection: 127.0.0.1:54660
[17:40:55] [npc:join] daddycar22 has joined the server (7:127.0.0.1)
[17:40:55] Incoming connection: 127.0.0.1:54661
[17:40:56] [npc:join] daddycar23 has joined the server (28:127.0.0.1)
[17:40:56] [npc:part] Julius59 has left the server (9:0)
[17:40:56] Incoming connection: 127.0.0.1:54662
[17:40:56] [npc:join] daddycar24 has joined the server (9:127.0.0.1)
[17:40:56] [npc:part] Julius60 has left the server (10:0)
[17:40:57] Incoming connection: 127.0.0.1:54663
[17:40:57] [npc:join] daddycar25 has joined the server (10:127.0.0.1)
[17:40:57] [npc:part] Julius61 has left the server (11:0)
[17:40:57] Incoming connection: 127.0.0.1:54664
[17:40:57] [npc:join] daddycar26 has joined the server (11:127.0.0.1)
[17:40:58] Incoming connection: 127.0.0.1:54665
[17:40:58] [npc:join] daddycar27 has joined the server (29:127.0.0.1)
[17:40:58] [npc:part] Julius62 has left the server (12:0)
[17:40:58] Incoming connection: 127.0.0.1:54666
[17:40:58] [npc:join] daddycar28 has joined the server (12:127.0.0.1)
[17:40:58] [npc:part] Julius63 has left the server (13:0)
[17:40:59] Incoming connection: 127.0.0.1:54667
[17:40:59] [npc:join] daddycar29 has joined the server (13:127.0.0.1)
[17:40:59] [npc:part] Julius64 has left the server (14:0)
[17:40:59] Incoming connection: 127.0.0.1:54668
[17:41:00] [npc:join] daddycar30 has joined the server (14:127.0.0.1)
[17:41:00] Incoming connection: 127.0.0.1:54669
[17:41:00] [npc:join] daddycar31 has joined the server (30:127.0.0.1)
[17:41:00] Incoming connection: 127.0.0.1:54670
[17:41:01] [npc:join] daddycar32 has joined the server (31:127.0.0.1)
[17:41:01] Incoming connection: 127.0.0.1:54671
[17:41:01] [npc:join] daddycar33 has joined the server (32:127.0.0.1)
[17:41:02] Incoming connection: 127.0.0.1:54672
[17:41:02] [npc:join] daddycar34 has joined the server (33:127.0.0.1)
[17:41:02] Incoming connection: 127.0.0.1:54673
[17:41:02] [npc:join] daddycar35 has joined the server (34:127.0.0.1)
[17:41:03] Incoming connection: 127.0.0.1:54674
[17:41:03] [npc:join] daddycar36 has joined the server (35:127.0.0.1)
[17:41:03] Incoming connection: 127.0.0.1:54675
[17:41:03] [npc:join] daddycar37 has joined the server (36:127.0.0.1)
[17:41:04] Incoming connection: 127.0.0.1:54676
[17:41:04] [npc:join] daddycar38 has joined the server (37:127.0.0.1)
[17:41:04] Incoming connection: 127.0.0.1:54677
[17:41:05] [npc:join] daddycar39 has joined the server (38:127.0.0.1)
[17:41:05] Incoming connection: 127.0.0.1:54678
[17:41:05] [npc:join] daddycar40 has joined the server (39:127.0.0.1)
[17:41:06] Incoming connection: 127.0.0.1:54679
[17:41:06] [npc:join] daddycar41 has joined the server (40:127.0.0.1)
[17:41:06] Incoming connection: 127.0.0.1:54680
[17:41:06] [npc:join] daddycar42 has joined the server (41:127.0.0.1)
[17:41:07] Incoming connection: 127.0.0.1:54681
[17:41:07] [npc:join] daddycar43 has joined the server (42:127.0.0.1)
[17:41:07] Incoming connection: 127.0.0.1:54682
[17:41:07] [npc:join] daddycar44 has joined the server (43:127.0.0.1)
[17:41:08] Incoming connection: 127.0.0.1:54683
[17:41:08] [npc:join] daddycar45 has joined the server (44:127.0.0.1)
[17:41:08] Incoming connection: 127.0.0.1:54684
[17:41:09] [npc:join] daddycar46 has joined the server (45:127.0.0.1)
[17:41:09] Incoming connection: 127.0.0.1:54685
[17:41:09] [npc:join] daddycar47 has joined the server (46:127.0.0.1)
[17:41:09] Incoming connection: 127.0.0.1:54686
[17:41:10] [npc:join] daddycar48 has joined the server (47:127.0.0.1)
[17:41:10] Incoming connection: 127.0.0.1:54687
[17:41:10] [npc:join] daddycar49 has joined the server (48:127.0.0.1)
[17:41:11] Incoming connection: 127.0.0.1:54688
[17:41:11] [npc:join] daddycar50 has joined the server (49:127.0.0.1)
[17:41:11] Incoming connection: 127.0.0.1:54689
[17:41:11] [npc:join] daddycar51 has joined the server (50:127.0.0.1)
[17:41:12] Incoming connection: 127.0.0.1:54690
[17:41:12] [npc:join] daddycar52 has joined the server (51:127.0.0.1)
[17:41:12] Incoming connection: 127.0.0.1:54691
[17:41:12] [npc:join] daddycar53 has joined the server (52:127.0.0.1)
[17:41:13] Incoming connection: 127.0.0.1:54692
[17:41:13] [npc:join] TrainDriverLV has joined the server (53:127.0.0.1)
[17:41:13] Incoming connection: 127.0.0.1:54693
[17:41:14] [npc:join] TrainDriverLS has joined the server (54:127.0.0.1)
[17:41:14] Incoming connection: 127.0.0.1:54694
[17:41:14] [npc:join] TrainDriverSF has joined the server (55:127.0.0.1)
[17:41:14] Incoming connection: 127.0.0.1:54695
[17:41:15] Incoming connection: 127.0.0.1:54696
[17:41:15] [npc:join] DriverTest1 has joined the server (56:127.0.0.1)
[17:41:17] [npc:part] daddycar42 has left the server (41:0)
[17:41:18] [npc:part] daddycar43 has left the server (42:0)
[17:41:19] [npc:part] daddycar44 has left the server (43:0)
[17:41:19] [npc:part] daddycar45 has left the server (44:0)
[17:41:20] [npc:part] daddycar46 has left the server (45:0)
[17:41:20] [npc:part] daddycar47 has left the server (46:0)
[17:41:21] [npc:part] daddycar48 has left the server (47:0)
[17:41:21] [npc:part] daddycar49 has left the server (48:0)
[17:41:22] [npc:part] daddycar50 has left the server (49:0)
[17:41:22] [npc:part] daddycar51 has left the server (50:0)
[17:41:23] [npc:part] daddycar52 has left the server (51:0)
[17:41:24] [npc:part] daddycar53 has left the server (52:0)
[17:41:27] [npc:part] DriverTest1 has left the server (56:0)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)