Server starts up very slowly
#7

pawn Code:
public OnGameModeInit()
{
    /*CreateVehicle(416, 1704.2391, -1144.1865, 24.0980, 180.0000, -1, -1, 100);
    CreateVehicle(416, 1704.2391, -1135.1064, 24.0980, 180.0000, -1, -1, 100);
    CreateVehicle(416, 1704.2391, -1126.1064, 24.0980, 180.0000, -1, -1, 100);
    CreateVehicle(407, 1711.5103, -1142.6516, 24.0980, 180.0000, -1, -1, 100);
    CreateVehicle(407, 1711.5103, -1133.4160, 24.0980, 180.0000, -1, -1, 100);
    CreateVehicle(407, 1711.5103, -1124.0361, 24.0980, 180.0000, -1, -1, 100);
    CreateVehicle(490, 1718.9797, -1142.3037, 24.0980, 180.0000, 3, 1, 100);
    CreateVehicle(490, 1718.9797, -1134.4451, 24.0980, 180.0000, 3, 1, 100);
    CreateVehicle(490, 1718.9797, -1126.5286, 24.0980, 180.0000, 3, 1, 100);
    CreateVehicle(552, 1729.6388, -1126.4300, 23.6160, 180.0000, 3, 1, 100);
    CreateVehicle(498, 1745.8344, -1137.5427, 24.1906, -156.0000, 3, 1, 100);
    CreateVehicle(544, 1746.9913, -1129.4368, 24.1906, -156.0000, -1, -1, 100);
    CreateVehicle(489, 1737.0710, -1134.4435, 24.1757, 180.0000, 3, 1, 100);
    CreateVehicle(489, 1737.0710, -1127.5897, 24.1757, 180.0000, 3, 1, 100);
    CreateVehicle(597, 1729.6545, -1134.7670, 23.5764, 180.0000, 3, 1, 100);
    CreateVehicle(563, 1721.1823, -1127.2052, 35.0932, 270.0000, 3, 1, 100);*/


    mysql_debug(SQL_DEBUG);
    //mysql_log(LOG_ERROR | LOG_WARNING);
    g_connectionHandle = mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
   
    if(mysql_ping() == 1) print(" * Connecting to MySQL: Success"); //Als mysql_ping gelijk staat aan 1 betekent dat dat er connectie is.
    else print(" x [ERROR] Connecting to MySQL: Failed"); //Zo niet, dan niet :O!
   
    Streamer_VisibleItems(STREAMER_TYPE_OBJECT, 1000);

    SetGameModeText(""#SCRIPT_MODE" "#SCRIPT_VERSION"");
    EnableStuntBonusForAll(0);
    DisableInteriorEnterExits();
    ManualVehicleEngineAndLights();
    ShowPlayerMarkers(0);
    //SetNameTagDrawDistance(Float:25);
    //DisableNameTagLOS();
   
    InitFactions();
    InitVehicles();
    InitHouses();
    LoadObjects();

   
   
    FadeInit();
   
    RandomWeatherSystem();
    SetTimer("RandomWeatherSystem",60*60*1000,1);
   
    OneSecondTimer = SetTimer("OneSecondPublic", 1000, true);
    FuelTimer = SetTimer("FuelUpdate",17000,1);
    BatteryTimer = SetTimer("BatteryUpdate",45000,1);
    SpeedUpTimer = SetTimer("SpeedUpPublic", 100, true);
    PickupsTimer = SetTimer("PickupMessages", 1000, true);
    pTimer = SetTimer("CheckPlayer", 100, true);
    ImpoundTimer = SetTimer("IsCarInArea", 1000, true);
    FlashTimer = SetTimer("FlasherFunc",200,1);
    SetTimer("TimeUpdate",1000,true);
   
    Date = TextDrawCreate(547.000000,28.000000,"--");
    TextDrawFont(Date,3);
    TextDrawAlignment(Date, 0);
    TextDrawBackgroundColor(Date, 0x000000ff);
    TextDrawSetOutline(Date, 1);
    TextDrawSetProportional(Date, 1);
    TextDrawSetShadow(Date, 1);
    TextDrawLetterSize(Date,0.399999,1.600000);
    TextDrawColor(Date,-1);
   
    Time = TextDrawCreate(547.000000,11.000000,"--");
    TextDrawFont(Time,3);
    TextDrawAlignment(Time, 0);
    TextDrawBackgroundColor(Time, 0x000000ff);
    TextDrawSetOutline(Time, 1);
    TextDrawSetProportional(Time, 1);
    TextDrawSetShadow(Time, 1);
    TextDrawLetterSize(Time,0.499999,1.800000);
    TextDrawColor(Time,-1);
    for (new x=0; x<MAX_VEHICLES; x++)
    {
        LightPwr[x]=1;
        Flasher[x]=0;
        FlasherState[x]=0;
    }
   
   
    //ASGH
    Stones(CreateObject(12814, 1230.73, -1310.15, 12.35, 0.00, 0.00, 180.13, 250.0));
    Stones(CreateObject(12814, 1230.91, -1360.13, 12.35, 0.00, 0.00, 0.13, 250.0));

//And maybe 100+ texdraws
Reply


Messages In This Thread
Server starts up very slowly - by Stefand - 31.05.2013, 19:33
Re: Server starts up very slowly - by NickD - 01.06.2013, 05:26
Re: Server starts up very slowly - by nmader - 01.06.2013, 05:53
Re: Server starts up very slowly - by InternationalGaming1 - 01.06.2013, 06:40
Re: Server starts up very slowly - by Stefand - 01.06.2013, 06:42
Re: Server starts up very slowly - by nmader - 01.06.2013, 06:45
Re: Server starts up very slowly - by Stefand - 01.06.2013, 07:10
Re: Server starts up very slowly - by DobbysGamertag - 01.06.2013, 07:18
Re: Server starts up very slowly - by Stefand - 01.06.2013, 07:20
Re: Server starts up very slowly - by DobbysGamertag - 01.06.2013, 07:24

Forum Jump:


Users browsing this thread: 1 Guest(s)