Jump to content

Arabu

Member
  • Posts

    210
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by Arabu

  1. progress3D.inc

    progress3D.png

    After the 2D textdraw-based version of progress bars, here now comes the 3D version. This library lets you create progress bars in 3D space. It's basically just two overlapping 3D text labels, one being moved slightly to the right to fill in those gaps between the characters. Have fun with it!

    Repository
    sampctl-progress3D-2f2f2f.svg?style=for-

    Functions

    • Bar3D:CreateProgressBar3D(layout, fill_color, background_color, Float:max_value, Float:init_value, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_3D_TEXT_LABEL_SD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1)

    Creates a 3D progress bar.

    • DestroyProgressBar3D(Bar3D:barid)

    Destroys a 3D progress bar.

    • GetProgressBar3DValue(Bar3D:barid)

    Returns the current progress value.

    • SetProgressBar3DValue(Bar3D:barid, Float:value)

    Updates the value of the specified 3D progress bar.

    • GetProgressBar3DFillColor(Bar3D:barid)

    Returns the fill color of the specified 3D progress bar.

    • SetProgressBar3DFillColor(Bar3D:barid, fill_color)

    Updates the fill color of the specified 3D progress bar.

    • GetProgressBar3DBackgroundColor(Bar3D:barid)

    Returns the background color of the specified 3D progress bar.

    • SetProgressBar3DBackgroundColor(Bar3D:barid, background_color)

    Updates the background color of the specified 3D progress bar.

    • GetProgressBar3DMaxValue(Bar3D:barid)

    Returns the maximum value of the specified 3D progress bar.

    • SetProgressBar3DMaxValue(Bar3D:barid, Float:max_value)

    Updates the maximum value of the specified 3D progress bar.

    • GetProgressBar3DLayout(Bar3D:barid)

    Returns the layout of the specified 3D progress bar.

    • SetProgressBar3DLayout(Bar3D:barid, layout)

    Updates the layout of the specified 3D progress bar.

    • IsValidProgressBar3D(Bar3D:barid)

    Returns true, if the specified 3D progress bar ID is valid and exists.


    Changelog

    v1.3

    • Added a new parameter layout with three new bar layout options
    1. BAR_3D_LAYOUT_THIN
    2. BAR_3D_LAYOUT_NORMAL
    3. BAR_3D_LAYOUT_THICK
    • Added GetProgressBar3DLayout(Bar3D:barid) and SetProgressBar3DLayout(Bar3D:barid, layout)


    v1.2.1

    • Fixed getter functions (forgot to add "_:" to the returned value)


    v1.2

    • Added the parameter Float:max_value to Bar3D:CreateProgressBar3D(...)
    • Added GetProgressBar3DMaxValue(Bar3D:barid)
    • Added SetProgressBar3DMaxValue(Bar3D:barid, Float:max_value)
    • Updated the testing script


    v1.1

    • Code optimizations
    • Internal check if value ranges from 0 to 100.


    v1.0

    • Initial release
  2. Untitled.png.ff825e5364fe33e53c079c017f5

    Autor : Mister

     

    Salut, cu ceva timp in urma am postat un video in care va intrebam si va ceream cateva sfaturi despre un sistem de case opening. Am abandanot "proiectul" pentru o perioada iar zilele acestea m am reapucat si dupa ce l am terminat si finisat, m am gandit sa il postez, de ce? de ce nu. 

     

     Descriere:   

    Sistemul este realizat in intregime de mine (asa lucrez eu indiferent, nu mai lucrez la comun sau la edit)

    V 1.0 Prima versiune se putea utiliza doar de un player plus optimizare si cod scris prost, am postat la imagini si video acum ceva timp

    Functioneaza pentru mai multi playeri in acelasi timp

    5 tipuri de iteme:  Common 48% UnCommon 23% Rare 16%  Ultra Rare 11% Legendary 2%  

    Sistemul este inspirat din CS:GO 

    Sunete ca in CS:GO atunci cand se trece peste iteme si 3 sunete distincte pentru primele 3 clase de iteme 

    Nu aveti nevoie de streamer este creat doar din obiecte globale

    Obiectele sunt create la 700metri deasupra playerului deci nu pot incurca

    Sistemul nu contine textdrawuri deoarece asa ceva nu se poate realiza din acestea desi da impresia

    210 obiecte vor fi create pentru fiecare player care deschide o cutie si vor fi distruse imediat dupa

    Numele Cantitatea si Itemele care pot fi castigate la cutie pot fi usor modificate

    Destul de ordonat, optimizat si bine aranjat zic eu pentru 300 de linii de cod dar oriunde e loc de mai bine

    Pastebin :

    This is the hidden content, please

    Download pawn :

    This is the hidden content, please

    VirusTotal : https://www.virustotal.com/ro/url/18b1927e676a625a04c5ff6435c34398c86a0767893fb81c49ededb3277bd567/analysis/1536017014/

    Video : 

     

×
×
  • Create New...