Jump to content

Mister

Moderator
  • Posts

    1,884
  • Joined

  • Last visited

  • Days Won

    113

Community Answers

  1. Mister's post in Car damage was marked as the answer   
    Salutare,
    Incearca sa folosesti functia https://open.mp/docs/scripting/callbacks/OnPlayerWeaponShot
    folosesti un if pentru hittype == BULLET_HIT_TYPE_VEHICLE
    apoi adaugi acel for pentru toti jucatorii, verifici in acel for daca jucatorul se afla in vehiculul lovit, GetPlayerVehicleID i == hitid
    si trimiti mesajul catre jucatorul i ca jucatorul playerid i a lovit masina
    Daca am scris gresit incearca si tu sa faci de la tine, eu ti am dat rapid un pseudocod din capul meu gandit rapid nu mura in gura, succes!
  2. Mister's post in Ajutor Checkpoints DMV was marked as the answer   
    Salutare,
    La OnPlayerEnterCheckpoint, la fiecare DmvStage pe langa functia SetPlayerCheckpoint ai de asemenea functia DisablePlayerCheckpoint
    Poti incerca sa schimbi codul in ceva de genul pentru toate DmvStage-urile 
    if(dini_Int(file, "DmvStage") == 1){ SetPlayerCheckpoint(playerid, 1311.3917,-1840.5356,12.9904, 10); dini_IntSet(file, "DmvStage", 2); } else if(dini_Int(file, "DmvStage") == 2){ SetPlayerCheckpoint(playerid, 1326.6887,-1734.6566,12.9904, 10); dini_IntSet(file, "DmvStage", 3); } Incearca sa le separi prin else if si sa stergi DisablePlayerCheckpoint, la ultimul Stage la 16 este ok sa fie DisablePlayerCheckpoint
  3. Mister's post in Cerere ID obiect was marked as the answer   
    Acela este obiectul, pozele sunt la fel.
    Cat despre problema coliziunii, nu prea ai ce sa faci, dar poti adauga un al doilea obiect cum ar fi id 19900 de aproximativ aceleasi dimensiuni in acelasi loc, aplici textura de geam sau una complet transparenta sa il faci invizibiil si te folosesti de acesta, cand se trage in el obiectul Camera[1] sa fie distrus.
  4. Mister's post in Ajutor! was marked as the answer   
    Salutare, daca te referi la textdrawuri le faci din joc cu Ipleomax
     
  5. Mister's post in Eroare Pawno was marked as the answer   
    Salutare.
    Textul tau este prea lung asta incearca sa iti zica eroarea, trebuie sa mai scoti din variabile sa faci propozitia mai scurta limita este de 128 de caractere la intrare si 144 la iesire daca nu ma înșel.
    This %s (ID %d) is owned by %s | Age: %d days | Odometer: %.0f km | Insurance: $%d (%d points) | Colors: %d, %d {FFFF00}[VIP]
    il poti imparti in 2 mesaje cel mai bine  daca vrei neaparat sa pastrezi toate informațiile 
  6. Mister's post in Problema TDE Editor was marked as the answer   
    verifica sa nu ai mai multe san andreasuri instalate ca am patit si eu am vreo 3 si nu mai stiu care ce au unele au moduri pe joc altele fisiere pentru script ca si tde editor vezi sa fie cel potrivit
  7. Mister's post in YSI help was marked as the answer   
    Salut, nu sunt foarte sigur dar incearca asa Command_ReProcess(playerid, "/CMD:park", false);
  8. Mister's post in Ajutor gravitatie was marked as the answer   
    Salut, in momentul in care playerul a ajuns in locatia dorita folosesti

        SetPlayerGravity(playerid,0.004);
    iar cand ajunge inapoi

        SetPlayerGravity(playerid,0.008);// valoarea default pentru gravitatie
  9. Mister's post in Logo Ruby was marked as the answer   
    Salut la inceputul gamemodeului adauga
     
    new PlayerText:RubyPTD[MAX_PLAYERS][10];//10 sau cate textdrawuri ai tu cu RubyPTD
  10. Mister's post in Ajutor va rog. was marked as the answer   
    fisierele dll nu sunt necesare pe host pe linux mai exact ai nevoie de pluginurile cu extensia .so
    EDIT: in server.cfg ai nevoie sa pui la linia plugins numele pluginului  si .so la final
    plugins streamer.so mysql.so sscanf.so
  11. Mister's post in Masini factiuni BristonGOV was marked as the answer   
    Cauta in includeul saveaccount 
  12. Mister's post in Problema pica server was marked as the answer   
    Si ce ai vrea sa faci cu ipul?
    La public OnDialogResponse adauga asta
    if( strfind(inputtext, "%", true) != -1 || strfind(inputtext, "'", true) != -1 || strfind(inputtext, "`", true) != -1 || strfind(inputtext, ";", true) != -1 ) { format(string,sizeof(string),"* %s (%d) type inccorect character", PlayerName(playerid), playerid); SendClientMessage(playerid,COLOR_RED,"don't use this characters!"); return 0; }
  13. Mister's post in Problema comadna /clothes was marked as the answer   
    Fratele meu pe bune acum, ai 2 ifuri de indeplinit cred ca si mama reusea.
    1  IsAtClothShop(playerid)) sa cauti publicul acesta sa vezi care este cloth shopul
    si 
    2      if(PlayerInfo[playerid][pMember] >= 1 && PlayerInfo[playerid][pLeader] == 0)         trebuie sa fii membrul une factiuni dar nu lider
            
    Sunt mai multe ifuri dar decat 2 ce am zis eu nu iti da mesaj de else 
  14. Mister's post in Nu se salveaza datele in baza de date! was marked as the answer   
    Nu inteleg de ce sa faci port forward daca panelul e pe host? :)))
    Adica frate port forward faci in pc panelul e pe host si te astepti sa mearga, de ce?!
    Hostginger nu suporta php deci nu poti pune paneluri la ei si de ce ai pune baza serverului acolo hostul nu e facut pentru asta ci pentru serverele lor. Sunt degeaba si o firma jegoasa
    Ia de la 0ping pune serverul acolo si baza de date tot la ei
  15. Mister's post in RealChat help was marked as the answer   
    Din asta 
    Stergi si lasi doar setplayerchatbubble una singura lasi
    if(PlayerInfo[playerid][pAdmin] >= 1) SetPlayerChatBubble(playerid, string, 0xFFFF66FF, 20.0, 10000); if(PlayerInfo[playerid][pHelper] >= 1) SetPlayerChatBubble(playerid, string, 0xa9c4e4FF, 20.0, 10000);
  16. Mister's post in nu se vede bine scrisul was marked as the answer   
    Clanul contine o paranteza dreapta,  care înseamnă steluță pentru textdraw 
    Poti schimba fontul de la textdraw ,alta varianta nu e
  17. Mister's post in Locatie obiecte was marked as the answer   
    New float:x , float:y ... Z 
    GetObjectPos(plantat,x,y,z)
    IsPlayerInRangeOfPoint(playerid,2,x y z
     
    Sper ca înțelegi nu am dat mura în gură cauta pe wiki. Getobjectpos
  18. Mister's post in Nu schimba valoarea in baza de date[/makeadmin] was marked as the answer   
    incearca sa modifici asta 
        mysql_format(handle, query, sizeof(query), "UPDATE `conturi` SET `pAdmin`='%d WHERE `Nume`='%s'", P_Data[PT][pAdmin],TNume); in asta, mai mult ca sigur ai gresit la variabila ai un p trebuie sters
        mysql_format(handle, query, sizeof(query), "UPDATE `conturi` SET `Admin`='%d WHERE `Nume`='%s'", P_Data[PT][pAdmin],TNume);    
  19. Mister's post in comanda /jobs was marked as the answer   
    Mai bine utilizezi functia asta, globala decat cum ai tu
     
     
    getjobworkers(jobid) {     new Cache:Result,Get[2];     format(strings, sizeof(strings), "SELECT `Job` FROM `users` WHERE `Job` = %d", jobid);//     Result = mysql_query(handle,strings);     cache_get_data(Get[0], Get[1], handle);     cache_delete(Result);     return Get[0]; } si vei face asa
     
    format(string,sizeof(string),"La jobul 4 sunt  %d muncitori",getjobworkers(4));
    SendClientMessage(playerid,-1,string);
  20. Mister's post in Sprijin dialog server . was marked as the answer   
    La OnPlayerSpawn adaugi daca se spawneaza pentru prima data
    ShowDialogForPlayer (playerid,100,DIALOG_STYLE_MSGBOX, "info","colecteaza 20 de serviete\ndaca ai luat una nu poti lua iar bla bla bla\n bafta","ok","cancel"); il faci tu stii cum trebuie
    Daca vrei scriptul, nu se cer scripturi mai alese complexe ca asta.
  21. Mister's post in Ajutor DealerShip was marked as the answer   
    inlocuieste  new carsellprice = CarInfo[ownvehkey][cValue] / 10 * 3;
    cu 
     
    new carsellprice = vehPrice[CarInfo[ownvehkey][cModel]] / 4 * 3; vehStock[CarInfo[ownvehkey][cModel]]++; SaveVehStock();
  22. Mister's post in Problema factiuni was marked as the answer   
    Greseala ta e aici
    PlayerInfo[playerid][pLeader] = factiuneid;// persoana pe care aplicam comanda va fi liderul factiunii pe care am scris-o PlayerInfo[playerid][pMember] = factiuneid;// persoana pe care aplicam comanda va fi membrul factiunii pe care am scris-o PlayerInfo[playerid][pRank] = 6; // ii va da rank 6 Inlocuieste playerid cu lider 
  23. Mister's post in Problema texdraw was marked as the answer   
    Imcearca ipleomax e cel mai avansat mai usor de folosit si recomandat editor de textdrawuri 
    http://forum.sa-mp.com/showthread.php?t=376758
  24. Mister's post in Help me !! was marked as the answer   
    In sistemul acela, probabil aveai in folderul scriptfiles, ceva fisiere .ini sau un folder 
  25. Mister's post in Problema was marked as the answer   
    if(IsPlayerInArea(playerid, -574.6359,-1506.4325,-163.8351,-1301.3826))
×
×
  • 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.