Jump to content
  • 0

Factiuni si Job-uri pe gamemode-ul hpq.


XFLaviusX

Question

7 answers to this question

Recommended Posts

  • 0
Acum 45 minute, Kira. a spus:

Verifica comanda /jobs sau /factions .In orice caz poti sa o trimiti si aici pt ajutor

YCMD:factions(playerid, params[], help) {
    new szDialog[210], szDialog2[1700];
    strcat(szDialog2, "Numele factiunii\tMembrii/Locuri\tAplicatii\n");
    for(new i = 1; i < 14; i++) {
        format(szDialog, sizeof(szDialog), "%d. {%s}%s{FFFFFF}\t%s/10\t%s\n", i, ColorFaction[i], FactionName(i), GetFactionMembers(i), GetFactionStatus(i));
        strcat(szDialog2, szDialog);
    }
    ShowPlayerDialogEx(playerid, DIALOG_FACTIONS, DIALOG_STYLE_TABLIST_HEADERS, "Factiuni:", szDialog2, "Ok", "Close");
    return true;
}

YCMD:jobs(playerid, params[], help) {
    
    if(JobWorking[playerid] == 1) 
        return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti folosi aceasta coamnda cand muncesti.");
    
    new szDialog2[1024], szTitle[50], xx, Owner[30];
    strcat(szDialog2, "Job name\tLevel\tOwner\tDistance\n");

    for(new j = 0; j < MAX_JOBS; j++) {
        if(strlen(JobInfo[j][jName]) > 1) {
            if(strcmp(JobInfo[j][jOwner], "None", true) == 0) { 
                Owner = "{BC1D1D}-{FFFFFF}"; 
            } else format(Owner, sizeof(Owner), "%s", JobInfo[j][jOwner]);

            gString[0] = EOS;
            format(gString, sizeof(gString), "%s\t%d\t%s\t%0.2fm\n", JobInfo[j][jName],JobInfo[j][jLevel], Owner, GetPlayerDistanceFromPoint(playerid, JobInfo[j][jPosX],JobInfo[j][jPosY],JobInfo[j][jPosZ]));
            strcat(szDialog2, gString);
            xx++;
        }
    }
    format(szTitle, sizeof(szTitle), "Jobs: %d", xx);
    ShowPlayerDialog(playerid, DIALOG_JOBS, DIALOG_STYLE_TABLIST_HEADERS, szTitle, szDialog2, "Ok", "Cancel");
    return true;
}

function PlayersHaveJob(jobid) {
    new x;
    foreach(Player, i) {
        if(IsPlayerConnected(i) && IsPlayerLogged[i] == 1) {
            if(PlayerInfo[i][pJob] == jobid) x++;
        }
    }
    return x;
}

 

Uite bro, poate vezi ceva mai ne la locul lui..

Link to comment
Share on other sites

  • 0

YCMD:factions(playerid, params[], help) {
    new szDialog[210], szDialog2[1700];
    strcat(szDialog2, "Numele factiunii\tMembrii/Locuri\tAplicatii\n");
    for(new i = 1; i < 14; i++) {
        format(szDialog, sizeof(szDialog), "%d. {%s}%s{FFFFFF}\t%s/10\t%s\n", i, ColorFaction[i], FactionName(i), GetFactionMembers(i), GetFactionStatus(i));
        strcat(szDialog2, szDialog);
    }

 strcat(szDialog2, "Numele factiunii\tMembrii/Locuri\tAplicatii\n");
    for(new i = 1; i < 14; i++) {

aici ai verificatia daca sunt pana in 14 factiuni , probabil ai mai multe.Inlocuieste 14 cu cate ai

 

 

Link to comment
Share on other sites

  • 0
Acum 1 minut, Kira. a spus:

YCMD:factions(playerid, params[], help) {
    new szDialog[210], szDialog2[1700];
    strcat(szDialog2, "Numele factiunii\tMembrii/Locuri\tAplicatii\n");
    for(new i = 1; i < 14; i++) {
        format(szDialog, sizeof(szDialog), "%d. {%s}%s{FFFFFF}\t%s/10\t%s\n", i, ColorFaction[i], FactionName(i), GetFactionMembers(i), GetFactionStatus(i));
        strcat(szDialog2, szDialog);
    }

 strcat(szDialog2, "Numele factiunii\tMembrii/Locuri\tAplicatii\n");
    for(new i = 1; i < 14; i++) {

aici ai verificatia daca sunt pana in 14 factiuni , probabil ai mai multe.Inlocuieste 14 cu cate ai

 

 

Pai in baza sunt 13 si eu vreau sa o adaug pe a 14- a.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By KenSon ADV
      UserName: KenSon Nume Gamemode: HPQ B-HOOD Creator/editor: Edison, Skillz, HPQ123, KenSon Link Poze: https://imgur.com/a/KjFLKZJ Virustotal: https://www.virustotal.com/gui/file/843a2068a94b3efe1d28fb2d7e89583f830f321feed76d5bce3358f0b3ee1fe8/detection Download: https://drive.google.com/file/d/1M4C607rE2BxBegkbjUhPG8zrdtxKWkaW/view?usp=sharing Alte Precizari: 
      1. Aveti de mutat crates ( nu mai am mapping).
      2. Aveti foarte multe chestii in + pe langa poze.
      3. Aveti spawn frumos cu mapping.
      4. Foarte multe chestii modificate.
      Succes cu gm.
    • By EclyseRPGADV
      HPQ v.0.69 O descriere cât mai mare a gamemod-ului. Este un gamemode destul de ok cu foarte multe udates, va recomand sa il folositi. Poze și/sau video. https://imgur.com/a/s2EuqZU Link de descărcare: sters VirusTotal: sters  
       
       
       
       
    • By TheGodfather
      Salut, as vrea ca dupa restart sa imi puna valoarea pe care a avut-o job goal-ul inainte de restart. Job goal-ul se salveaza bine in baza de date de fiecare data cand un player face job. Doar ca atunci cand pornesc server-ul din nou o sa aiba valoarea 0.
      function UpdateJobGoal(update) {
          ServerGoal += update;
          gString[0] = EOS;
          format(gString, 60, "~y~$%s ~w~/ ~r~$%s", ServerGoal >= MAXGOAL ? FormatNumbers(MAXGOAL) : FormatNumbers(ServerGoal), FormatNumbers(MAXGOAL));
          TextDrawSetString(GoalTD[0], gString);
          if(TerminatJobGoal != 1) {
              //goal
              gQuery[0] = EOS;
              mysql_format(SQL, gQuery, sizeof(gQuery), "UPDATE `stuff` SET `goal`='%d'", ServerGoal);
              mysql_tquery(SQL, gQuery, "", "");
              //goal
              if(ServerGoal >= MAXGOAL) {
                  foreach(Player, b) {
                      new amount, rand = random(30);
                      switch(rand) {
                          case 0..10: {
                              amount = RandomEx(50, 100);
                              format(gString, 100, "Job Goal: {FFFFFF}Congratulations! You received %d Gift Points because the job goal is full.", amount);
                              SCM(b, 0xF5C738FF, gString);
                              PlayerInfo[b][pGiftPoints] += amount;
                              if(PlayerInfo[b][pGiftPoints] >= 500) PlayerInfo[b][pGiftPoints] = 500;
                              Update(b, pGiftPointsx);        
                          }
                          case 11..19: {
                              amount = RandomEx(15, 30);
                              format(gString, 100, "Job Goal: {FFFFFF}Congratulations! You received %d Premium Points because the job goal is full.", amount);
                              SCM(b, 0xF5C738FF, gString);
                              PlayerInfo[b][pPremiumPoints] += amount;
                              Update(b, pPremiumPointsx);        
                          }
                          default: {
                              amount = RandomEx(200, 300);
                              format(gString, 100, "Job Goal: {FFFFFF}Congratulations! You received %d Q-Points because the job goal is full.", amount);
                              SCM(b, 0xF5C738FF, gString);
                              PlayerInfo[b][pHpoints] += amount;
                              Update(b, pHpointsx);
                          }
                      }
                  }
                  TerminatJobGoal = 1;
              }
          }
          return true;
      }
      GoalTD[0] este definit astfel in Booter.inc
      GoalTD[0] = TextDrawCreate(320.281829, 435.829803, "~y~$0~w~ /~g~ $50.000.000");
      Goal-ul se salveaza aici: stuff - goal

       
    • By AntiExE Smk Boss
      Vand panel-uri realizate in VueJS si PHP facute de mine de la 0, pretul poate porni de la 10 euro si sa ajunga pana la 30 in functie de cerintele clientului

      Cum se procedeaza? clientul alege template-ul fac panel-ul clientul imi da bani ii dau panel-ul si am incheiat colaborarea

      Si daca aveti vreun panel cu errori sau etc.. dati-mi pm si va ajut gratis.

      Contact pe instagram: gvng.AntiExE

      poze:





    • By Rby Robert
      Salut. am bagat pe server niste filterscripts cu job-uri dar dupa ce le termin imi da banii fictiv gen imi apare in chat ca am primit imi creste suma in dreapta sus dar in /stats tot aceeasi bani ii am gen daca am 100$ tot 100$ am nu imi da bani de la job
      DisablePlayerCheckpoint(playerid);
              SendClientMessage(playerid,-1,"Ati terminat de livrat coletele si ati castigat o suma de bani,felicitari!");
              GivePlayerMoney(playerid, 500000);
              DestroyVehicle(MasinaCJ[playerid]);
      Cam asa arata liniile unde ar trebuie sa dea bani
  • 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.