Jump to content
Hostul a fost schimbat. Daca vedeti serverul offline readaugati rpg.b-zone.ro sau 141.95.124.78:7777 in clientul de sa-mp ×

Moderat

Donator
  • Posts

    561
  • Joined

Posts posted by Moderat

  1. Nick: Moderat
    Rang: 5
    Data: 24.03.2022
    Am dat test cu: Atentie.Tractez
    Teoretic (x/3): 1/3
    Practic (x/5): 0/5
    Teren (x/4): 4/4
    Rezultat final (Admis/Respins): Admis
    Alte precizări: Felicitari!

     

     

    Nick: Typhoon
    Rang: Lider
    Data: 24.03.2022
    Am dat test cu: .Ev0.
    Teoretic (x/3): 1/3
    Practic (x/5): 4/5
    Teren (x/4): 4/4
    Rezultat final (Admis/Respins): Admis
    Alte precizări: Felicitari!

  2. Nick: Moderat
    Rang: 5
    Data: 20.03.2022
    Am dat test cu: RaphaRafael
    Teoretic (x/3): 3/3
    Practic (x/5): x/5
    Teren (x/4): x/4
    Rezultat final (Admis/Respins) : Respins
    Alte precizări: Bafta data viitoare!

     

     

    Nick: Moderat
    Rang: 5
    Data: 20.03.2022
    Am dat test cu: flavianb2
    Teoretic (x/3): 3/3
    Practic (x/5): x/5
    Teren (x/4): x/4
    Rezultat final (Admis/Respins) : Respins
    Alte precizări: Bafta data viitoare!

  3. Nick: Moderat
    Rang: 5
    Data: 19.03.2022
    Am dat test cu: El_Bogdanel
    Teoretic (x/3): 2/3
    Practic (x/5): 2/5
    Teren (x/4): 0/4
    Rezultat final (Admis/Respins) : Admis
    Alte precizări: Felicitari!

     

     

    Nick: Moderat
    Rang: 5
    Data: 19.03.2022
    Am dat test cu: Alone
    Teoretic (x/3): 3/3
    Practic (x/5): x/5
    Teren (x/4): x/4
    Rezultat final (Admis/Respins) : Respins
    Alte precizări: Better luck next time!

  4. Nick: Moderat
    Rang: 5
    Data: 12.03.2022
    Am dat test cu: EMiR.
    Teoretic (x/3): 3/3
    Practic (x/5): x/5
    Teren (x/4): x/4
    Rezultat final (Admis/Respins) : Respins
    Alte precizări: Felicitari!

     

     

    Nick: Moderat
    Rang: 5
    Data: 12.03.2022
    Am dat test cu: desync
    Teoretic (x/3): 1.5/3
    Practic (x/5): 2/5
    Teren (x/4): 0/4
    Rezultat final (Admis/Respins) : Admis
    Alte precizări: Felicitari!

  5. On 2/3/2022 at 10:33 PM, Moderat said:

    A trebuit sa rezolv niste chestii, asa ca am actualizat link-ul.

     

    Pentru cei care il folositi, ar fi clar recomandat sa stergeti scriptul pe care il aveti deja si sa il puneti pe cel din noul link.

     

    Scriptul este acum in mod oficial la sectiunea de moduri - orice update va fi facut acolo de acum: https://forum.b-zone.ro/files/file/325-taxi-fare-helper/

     

     

    On 2/4/2022 at 5:53 AM, S y L v y said:

    Genial modul. Daca ai putea pe viitor sa faci un mod in care sa modifici tot HUD-ul sa fie mai frumos, cum ai facut la caseta cu fare si la textdraw-ul cu kilometraj. Totodata, un mod bun, nu te mai chinui sa scrii /fare 1-30-50 pe tastatura :))

     

     

    Ma gandeam, insa sunt si multe chestii la care nu am access, de ex. UI pentru cei care au parcela, etc. Chestiile astea ar fi putut fi facute direct din server. Daca eram scripter la server, as fi propus clar lui Kelton sa ma lase sa ma ocup (oricum nu am treaba cu scriptat pentru servere de SAMP, deci situatia asta ar fi intr-un ceva univers alternativ).

  6. Salut,

     

    Avand in vedere faptul ca acum avem tarife diferite in functie de perioada zile, plus faptul ca nu imi place cum arata informatiile despre /fare in chenarul ala galben, am lucrat la un script care (pe scurt) modifica afisarea informatiilor respective, cat care ne si informeaza daca tariful setat este gresit, in functie de ora.

     

    Scriptul a fost verificat de catre admini si nu afecteaza dovezile in cazul in care vom avea nevoie sa facem dovezi pentru diverse situatii care pot aparea in joc.

     

    Mai multe detalii:

    - Aspectul mai placut vizual (zic eu) al informatiilor despre fare:

    image.png.a40b28679be1ae4d9d291a20a2db568b.png

     

     

    - Daca ai /fare 1 setat, apare un mesaj cu scopul sa te faca sa nu uiti de el acolo si sa duci ulterior un pasager cu fare gresit.

    image.png.108b7307e5490cca81c2ed130fad01a6.png

     

     

    - Daca setam /fare 20, care nu mai este valabil, apare un mesaj de avertizare. Cand apar aceste mesaje de avertizare,

    putem apasa simultan tastele X+C pentru a seta /fare 30 sau /fare 50 in mod automat, in functie de ora serverului.

    image.png.b19ba3cd07f31678063433f634e8022d.png

     

     

    - Daca avem /fare 30 cand ar trebui 50, sau invers, apare intr-un mod similar un mesaj de avertizare.

    Apasarea simultana a butoanelor X+C va seta tariful corespunzator.

    image.png.232dc5bfe77cbe10e93559df44774e31.png

     

    Dupa cum poate fi observat din toate imaginile din exemple, si textul ce face referire la combustibil/viteza a primit un tratament similar cu textul informatiilor despre /fare.

     

    Instalare:

    - Este necesar sa aveti instalat CLEO si SAMPFUNCS.

    - Se copiaza scriptul .cs in folderul CLEO, si atat.

     

    Scurtaturi butoane disponibile:

    - Apasand simultan X+C se seteaza in mod automat /fare 30 sau 50 in functie de ora serverului

    - Apasand simultan Z+X se seteaza /fare 1

     

     

    Download (de pe ZippyShare) - link actualizat din nou, pe 3 Februarie (rezolvat repede niste chestii)

     

     

    Sper sa va fie de folos!

     

     

  7. 25 minutes ago, Tupi said:

    Or you can try this

     

    1@ = GetPlayerScore(0@)
    
    repeat
    wait 50
    1@ = GetPlayerScore(0@)
    until 1@ > 0

     

     

    It's basically the same thing, except you set the waiting time to 50ms, unless I don't know something and "repeat" works differently in the background in comparison to "while".

     

    I did a test, and after 30ms it already got the level, so I may increase the time to 15ms or something.

     

    "GetPlayerScore" doesn't force an update of the scoreboard and hence it doesn't put stress on the server, right?

  8. This seems to work fine for now - I will see in the following days if it works well at all times.

     

    7@ = SAMP.GetPlayerScore(6@)
    while 7@ < 1
    	wait 10
    	7@ = SAMP.GetPlayerScore(6@)
    end
    8@ = SAMP.GetPlayerNickname(6@)
    10@ = SAMP.GetPlayerColor(6@)
    if
    	10@ == 16777215
    then
    	chatmsg "{F1C40F}[InfoTaxi]{B399F1} %s are nivel %d si este {FFFFFF}Civil" -1 8@ 7@
    end

     

    Thank you very much again for your assistance!

  9. 1 hour ago, Tupi said:

    Yes, but this method makes the code double

    1@ = GetPlayerScore(0@)
    
    if 1@ > 0
    then
           ... some code
    else
          1@ = GetPlayerScore(0@)
          if 1@ > 0
          then
                 ... some code
         end
    end

     

    The simplest is to run the code twice

    1@ = GetPlayerScore(0@)
    
    if 1@ > 0
    then
           ... some code
    else chatmsg "Player level unrecognized. Please try again" -1
    end

     

     

    The idea is to have the player's level eventually, and not show an error.

     

    What do you think of this implementation?

     

    7@ = SAMP.GetPlayerScore(6@)
    if
    	7@ == 0
    then
    	7@ = SAMP.GetPlayerScore(6@)
    end
    8@ = SAMP.GetPlayerNickname(6@)
    10@ = SAMP.GetPlayerColor(6@)
    if
    	10@ == 16777215
    then
    	chatmsg "{F1C40F}[InfoTaxi]{B399F1} %s are nivel %d si este {FFFFFF}Civil" -1 8@ 7@
    end
    if
    	10@ == 16776960
    then
    	chatmsg "{F1C40F}[InfoTaxi]{B399F1} %s are nivel %d si este {FFFF00}Taximetrist" -1 8@ 7@
    end

     

    This section of code is in the "while" loop - should I have an additional "wait" before the second "GetPlayerScore"? If yes, how many miliseconds do you suggest? I mean, do you have enough experience with this part to know if an additional "wait" is necessary and how many miliseconds should this wait last before the script should do "GetPlayerScore" again?

     

    Thank you very much for your assistance.

  10. 1 hour ago, Tupi said:

    Hello,

     

    The scoreboard is updated in real time. The problem is that when the player receives a reconnect to the server, the GetPlayerScore function must be used twice because on first use it detects that the player's level would be 0. The problem is with the language itself, not the scoreboard. The only way to get the right level of player is from the website but it is a bit difficult, it requires some lines of code and it takes a few seconds to find it, besides if the website is down, it doesn't work.

     

    So I guess that I can get a player's score, check if it's 0, and if it's 0 I can just get it again, right?

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