Jump to content
  • 0

Problema spawn masini x(


Gh0s7

Question

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Similar Content

    • By Lwka
      Hey! Am si eu nevoie de ajutor la comanda /bonus


      Cum pot acorda un vehicul temporar?
    • By CristianLMAO
      Salut!
      Astazi o sa va prezint primul meu sistem pus pe acest site, si o sa va explic ce face fiecare lucru.
      Hai sa incepem.
      Sistemul arata cam asa:

      (dialogul este pozitionat mai in drapta din cauza rezolutiei mele)
      IMPORTANT:
      IN CODUL DE MAI JOS ESTE DECAT CE MAI TREBUIE ADAUGAT, NU TOT GAMEMODUL!!
      TUTORIAL:
       
      //punem include-urile care ne trebuie la acest sistem #include <zcmd>  
      //prima data facem o comanda, dar atentie, ACEASTA COMANDA O POATE FOLOSI ORICINE, daca doriti ca doar admini sa o poata folosi, folositi comanda hasurata! CMD:v(playerid, params[]){ ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "Spawn car", "Write your car id: (Min. 400 / Max. 611)", "Spawn", "Close"); //cand scriem "/v" apare acest dialog return 1; } //DACA DORITI SA FIE COMANDA ASTA ACCESIBILA DOAR LA ADMIN: //CMD:v(playerid, params[]){ // // if (IsPlayerAdmin(playerid)) // daca jucatorul este admin: // { // ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "Spawn car", "Write your car id: (Min. 400 / Max. 611)", "Spawn", "Close"); //cand scriem "/v" apare acest dialog // } // else{ //daca nu: // SendClientMessage(playerid, 0xFF000090, "You're not admin!"); // } // return 1; //}  
      public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == 1){ // cand raspunde la dialogul cu id-ul 1 se intampla asta: if(!response) return SendClientMessage(playerid, 0xFF000099, "You closed the menu!"); // daca apasa pe butonul de inchidere, acest meniu o sa se inchida. if(strval(inputtext) < 400) return SendClientMessage(playerid, 0xFF000099, "Your car id is under 400!"); // Daca id-ul scris este mai mic de 400 o sa scrie asta if(strval(inputtext) > 611) return SendClientMessage(playerid, 0xFF000099, "Your car id is over 611!"); // Daca id-ul scris este mai mare de 611 o sa scrie asta // inputtext inseamna ce a scris jucatorul in text-box. new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid,X,Y,Z); // aici seteaza valoarea lui X, Y si Z in coordonatele juactorului CreateVehicle(strval(inputtext),X,Y+5,Z,1,1,1,90000); //spawneaza masina cu id-ul din textbox, la coordonatele playerului return 1; } }  
      Daca este sa fi omis ceva, sau daca doriti sa imbunatatesc acest sistem, puteti spune in comentarii.
    • By Matei02Mihai
      Cum pot face sa nu mai fie nevoie de acel buton de "Spawn" dupa de trec parola?
    • By TheGodfather
      Salut, am gasit o problema la gamemde-ul bhood de HPQ123. Cand cineva isi cumpara o masina din dealership, uneori aceasta primeste random sistemele vip sau rainbow, totodata cand masina nu primeste aceste sisteme, in /v o sa spuna ca e ocupata chiar daca ea nu e ocupata iar playerul nu o poate despawna pentru ca ii spune ca este ocupata. Voi da cateva functii la care cred ca ar putea sa fie problema, daca nu, pun si gamemodeul sa va uitati in el daca doriti.
      YCMD:buycar(playerid, params[], help) {
          if(aspam[playerid] > 0) return SCMEx(playerid, COLOR_LIGHTRED, "[Command Anti-Spam] {FFFFFF}Asteapta %d secunde.", aspam[playerid]);
          if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid, COLOR_GREY, "Nu ai nivel 3!");
          if(InDealer[playerid] != 0) return 1;
          if(!PlayerToPoint(3,playerid,1487.0498,-2287.2930,13.7529)) return SCM(playerid, COLOR_GREY, "Nu esti la dealership.");
          if(TestingModel[playerid] == 1) return true;
          LoadDsVehs(playerid);
          if(PlayerInfo[playerid][pWantedLevel] > 0) return SCM(playerid, -1, "Ai wanted, nu poti folosi aceasta comanda!");
          TestingModel[playerid] = 0;
          DealerCarType[playerid] = 1;
          InDealer[playerid] = 1;
          TogglePlayerControllable(playerid, 0);
          SetPlayerVirtualWorld(playerid, playerid+1);
          SetPlayerInterior(playerid, 0);
          DealerID[playerid] = 1;
          DealerCarColor1[playerid] = 1;
          DealerCarColor2[playerid] = 1;
          DealerCar[playerid] = CreateVehicleEx(DSModels[DealerID[playerid]][dModel],1463.3318,-2299.0806,13.6845,281.2260,DealerCarColor1[playerid],DealerCarColor2[playerid], -1, 0);
          SetVehicleVirtualWorld(DealerCar[playerid],playerid+1);
          LinkVehicleToInterior(DealerCar[playerid], 0);
          PlayerTextDrawSetPreviewModel(playerid, DSTds[4], DSModels[DealerID[playerid]][dModel]);
          PlayerTextDrawShow(playerid, DSTds[4]);
          ShowDealershipTextdraws(playerid);
          SelectTextDraw(playerid, 0x15B864FF);
          ShowCamera(playerid);    
          return true;
      }
      stock ShowPlayerVehicle(playerid, bool: type) {
          if(aspam[playerid] > 0) return SCMEx(playerid, COLOR_LIGHTRED, "[Command Anti-Spam] {FFFFFF}Asteapta %d secunde.", aspam[playerid]);
          new szTitle[2000], szDialog[2000], x = 0;
          if(Iter_Count(MyVehicle[playerid]) == 0) 
              return SCM(playerid, COLOR_LGREEN, "Eroare: Nu ai un vehicul personal!");
          
          format(szTitle, sizeof(szTitle), "Your Vehicles {E3DE31}%d/%d", Iter_Count(MyVehicle[playerid]), GetSlots(playerid));
          strcat(szDialog, "Vehicul\tStatus\tDespawn Time\tOthers details\n");
          foreach(MyVehicle[playerid], car) {
              format(szDialog, sizeof(szDialog), "%s%s\t%s\t%s\t%s\n", szDialog, aVehicleNames[CarInfo[car][cModel]-400], CarInfo[car][Spawned] != 0 ? IsVehicleOccupied(CarInfo[car][Spawned]) ? ("{FFFF00}[occupied]") : ("{26B309}[spawned]") : ("{FF0000}[despawned]"), CheckDespawnCar(car), TotalUp(car)); 
              PlayerInfo[playerid][pCarKey][x] = car;
              x++;
          }
          ShowPlayerDialog(playerid, type ? DIALOG_STICKET : DIALOG_GARAGE, DIALOG_STYLE_TABLIST_HEADERS, szTitle, szDialog, "Ok", "Exit");
          return true;
      }
      B-HOOD.pwn
    • By VenoMarius ERROR404
      Salut, am si eu o problema cu database, dupa ce imi dau admin 7 din baza de date cand intru pe joc nu primesc adminul, dc ?
  • Recently Browsing   0 members

    No registered users viewing this page.

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