Jump to content

Recommended Posts

Posted

am urmatoarea comanda 

YCMD:apark(playerid, params[], help) {
    if(PlayerInfo[playerid][pScripter] < 1) return true;
    new Float:x,Float:y,Float:z, Float:a;
    if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_GREY, "Nu te aflii intr-un vehicul.");
    new car = GetPlayerVehicleID(playerid);
    new carid = FindSpawnID(car);
    if(carid == 0) return true;
    GetVehiclePos(car, x, y, z);
    GetVehicleZAngle(car, a);
    CarInfo[carid][cLocationx] = x;
    CarInfo[carid][cLocationy] = y;
    CarInfo[carid][cLocationz] = z;
    CarInfo[carid][cAngle] = a;
     DestroyVehicle(car);
      CarInfo[carid][Spawned] = CreateVehicleEx(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo], -1, 0);
    VehicleOwned[CarInfo[carid][Spawned]] = CarInfo[carid][Spawned];
    VehicleSQL[CarInfo[carid][Spawned]] = carid;
    SetTunning(carid);
    saveCar(carid);
    return true;
}

 

Dar cand dau in joc /apark nu imi salveaza masinile de la factiuni in baza de date ! 

  • 3 weeks later...
Posted (edited)

Salut. Din cate vad comanda este din GM HPQ123, in acel gamemode ai comanda /vpark pentru ServerVehicles adica masini de la factiuni, etc. deci te poti folosi de comanda /vpark.

Edited by Sniperzila

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.