Jump to content

razvan215

Membru
  • Posts

    5
  • Joined

  • Last visited

Posts posted by razvan215

  1. Problema intalnita (descriere): Nu stiu cum sa schimb modul in care umbla jucatorul(Vreau sa il fac default)
    Ero(area / rile) / warning-(ul / urile): -
    Liniile de cod / sursa / script-ul: Nu stiu.
    Imagini / Video (optional): -
    Ati incercat sa rezolvati singur?: Da , dar nu gasesc.

  2. Problema intalnita (descriere): Cand dau /v park si am de ex infernus , masina se schimb in comet (de ex).
    Ero(area / rile) / warning-(ul / urile):

     if(strcmp(cmd, "/park", true) == 0)
    {
    if(IsPlayerConnected(playerid))
      {
         new Float:x,Float:y,Float:z;
    new Float:a;
    new carid;
    new getcarid;
    if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCar]) { carid = PlayerInfo[playerid][pCar]; }
    else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pMoto]) { carid = PlayerInfo[playerid][pMoto]; }
    else { return 1; }
    getcarid = GetPlayerVehicleID(playerid);
              GetPlayerName(playerid, playername, sizeof(playername));
    GetVehiclePos(carid, x, y, z);
    GetVehicleZAngle(carid, a);
    if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1)
    {
       if(PlayerInfo[playerid][pCar] == 999 && PlayerInfo[playerid][pMoto] == 9999)
    {
    SCM(playerid, COLOR_GREY, "** You don't own a car or moto !");
    return 1;
    }
    if (PlayerInfo[playerid][pParked] == 0)
         {
                          SCM(playerid, COLOR_GREY, "** You don't have park ticket, use /parkticket !");
                          return 1;
                     }
        if(getcarid == carid || EngineSTATE[carid] == 1)
    {
    CarInfo[carid][cLocationx] = x;
    CarInfo[carid][cLocationy] = y;
    CarInfo[carid][cLocationz] = z;
    CarInfo[carid][cAngle] = a;
    DestroyVehicle(carid);
    CreateVehicle(CarInfo[carid][cIDcar],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColor1],CarInfo[carid][cColor2],60000);
    TogglePlayerControllable(playerid, 1);
    format(string, sizeof(string), "~g~%s ~n~~w~has saved in the position",CarInfo[carid][cModel]);
    GameTextForPlayer(playerid, string, 5000, 1);
    SetVehicleNumberPlate(carid,CarInfo[carid][cPlate]);
                         SetVehicleToRespawn(carid);
    PutPlayerInVehicle(playerid, carid, 0);
    GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
                SetVehicleParamsEx(carid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
                EngineSTATE[carid] = 1;
                OnPropUpdate();
    OnPlayerUpdate(playerid);
    return 1;
    }
    

    Liniile de cod / sursa / script-ul:

    Imagini / Video (optional):
    Ati incercat sa rezolvati singur?: Da , dar nu am reusit.  

×
×
  • 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.