Jump to content

Gabby

Membru
  • Posts

    12
  • Joined

  • Last visited

Posts posted by Gabby

  1. Acum 13 ore, SherKan a spus:

    arata functia DestroyPlayerCar

     

    stock DestroyPlayerCar(dbid) {
        if(CarInfo[dbid][Spawned] == 0) return 1;

        VehicleOwned[CarInfo[dbid][Spawned]] = 0;
        VehicleSQL[CarInfo[dbid][Spawned]] = 0;
            
        new Float: Pos[3];
        GetVehiclePos(CarInfo[dbid][Spawned], Pos[0], Pos[1], Pos[2]);
        if(CarInfo[dbid][cNeon] > 0) {
            DestroyDynamicObject(neon[0][CarInfo[dbid][Spawned]]);
            DestroyDynamicObject(neon[1][CarInfo[dbid][Spawned]]);
            neon[0][CarInfo[dbid][Spawned]] = 0;
            neon[1][CarInfo[dbid][Spawned]] = 0;    
        }
        if(strlen(CarInfo[dbid][cText]) >= 3) DestroyDynamicObject(nameobject[CarInfo[dbid][Spawned]]);
        CarInfo[dbid][cFuel] = Gas[CarInfo[dbid][Spawned]];
        new query[256];
        format(query, sizeof(query), "UPDATE `cars` SET `Fuel`='%d' WHERE `ID`='%d'", CarInfo[dbid][cFuel], dbid);
        mysql_query(SQL, query);
        
        CarInfo[dbid][cLastPos][0] = Pos[0];
        CarInfo[dbid][cLastPos][1] = Pos[1];
        CarInfo[dbid][cLastPos][2] = Pos[2];    
            
        DestroyVehicle(CarInfo[dbid][Spawned]);
        CarInfo[dbid][Spawned] = 0;
        new string[180];
        mysql_format(SQL, string, sizeof(string), "UPDATE cars SET Spawned='%d' WHERE ID=%d", CarInfo[dbid][Spawned], dbid);
        mysql_tquery(SQL, string, "", "");
        return 1;
    }

  2. Salut, masinile personale nefolosite nu primesc despawn. 

    Cod vechi:

    function DespawnVehicle(carid) {
        new dbid = FindSpawnID(carid);
        if(CarInfo[dbid][Spawned] != 0) DestroyPlayerCar(dbid);
        printf("Vehicle %d despawned. [db: %d]", carid, dbid);
        return 1;
    }

     

    Am modificat cum am gasit intr-un topic dar nu functioneaza:

    function DespawnVehicle(carid) {
        new dbid = FindSpawnID(carid);
        if(VehicleHaveDriver(dbid)) {
        VehicleTimer[dbid] = SetTimerEx("DespawnVehicle", 60000*20, 0, "d", dbid);// aici se reseteaza timer-ul pentru a nu ramane masina pe server
        return 1;
        }
        if(CarInfo[dbid][Spawned] != 0) DestroyPlayerCar(dbid);
        printf("Vehicle %d despawned. [db: %d]", carid, dbid);
        return 1;
    }

     

  3. Nu conteaza unde am pus panelul , alte paneluri dc functioneaza pe acel host. Lasa astea.

    Gm l-am pus pe host de la zeroping unde e si buggedul si tot nu merge asa ca lasa aburelile.

    Daca era bun crezi ca mai comentam aiurea aici!

  4. Nu recomand , mare teapa am luat cu acest gm cumparat de la el...

    Cam asa arata defapt gm-ul . De panel nu mai zic e plin de buguri. Chestia interesanta este ca el mi-a dat sa testez gm-ul si panelul bun exact ca in descriere dar na vinde un rahat de gm.

    Am atasat doar cateva poza de la hq factiuni sunt dezastru si nu numai.

    12325549_865779303533174_1342648541_o.jpg

    12381223_865779306866507_2094802303_o.jpg

    12422351_865779083533196_2016164923_o.jpg

    12443654_865778956866542_459397691_o.jpg

    12476631_865778953533209_1163697643_o.jpg

    12499453_865779090199862_1380674753_o.jpg

    12722248_865778930199878_1468390321_o.jpg

    12823063_865779350199836_1577009241_o.jpg

    12873449_865779000199871_1290053239_o.jpg

    12873598_865779250199846_356532382_o.jpg

    12873633_865779253533179_1734469788_o.jpg

    12874152_865779300199841_1451393436_o.jpg

    12874200_865779100199861_659950842_o.jpg

    12874514_865778946866543_1821933443_o.jpg

    12874526_865778986866539_884193290_o (1).jpg

    12874526_865778986866539_884193290_o.jpg

    12887271_865779103533194_1424520941_o.jpg

    12887381_865779310199840_1791655263_o.jpg

    12887427_865778406866597_1368483574_o.jpg

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.