- 0
[Problema] Speedometer - Aranjare
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
GoFUS
Salutare, sper sa nu deranjez pe nimeni, am o problema destul de enervanta si sincer nu i-am dat de cap pana acum, am sa incerc sa o mai repar pana primesc un raspuns din partea voastra, folosesc gamemode-ul Bottles, este un mic edit.
Am incercat sa refac Speedometer-ul sa inlocuiesc td-urile, insa problema este ca nu s-au asezat corect, decat primele td-uri (Viteza si Benzina).
Asa ar trebuii sa arate:
Asa arata:
Codul TD:
Si functia cu TextDrawString-urile
ci = GetPlayerSpeed(i, 0), GetVehicleHealth(pInfo[i][aVar][1], hpvv), GetVehicleParamsEx(pInfo[i][aVar][1], vParams[0],vParams[1],vParams[2],vParams[3],vParams[4],vParams[5],vParams[6]), format(SpStr, sizeof(SpStr), "Viteza: ~y~%d km/h", ci), PlayerTextDrawSetString(i, TSpeedometer[i][0], SpStr), format(SpStr, sizeof(SpStr), "Status: %s ~w~/ ~y~%0.0f%", vParams[3] <= 0 ? ("~y~deschis") : ("~r~inchis"), hpvv), PlayerTextDrawSetString(i, TSpeedometer[i][2], SpStr); if(vVar[3][pInfo[i][aVar][1]] <= 0 ? format(SpStr, sizeof(SpStr), "Benzina: ~r~fara") : format(SpStr, sizeof(SpStr), "Benzina: ~y~%d%", vVar[3][pInfo[i][aVar][1]])) PlayerTextDrawSetString(i, TSpeedometer[i][1], SpStr); if(vVar[1][pInfo[i][aVar][1]] == 1 && !IsPlayerAfk(i)) format(SpStr, sizeof(SpStr), "Kilometraj: ~y~%.0f", KMVeh[pInfo[i][aVar][1]]), PlayerTextDrawSetString(i, TSpeedometer[i][3], SpStr), KMVeh[pInfo[i][aVar][1]] += ci*0.0006; if(pInfo[i][aVar][72] > -1 && pInfo[i][pJob] == 4 && vVar[1][pInfo[i][aVar][72]] == 0) format(SpStr, sizeof(SpStr), "DISTANTA: ~y~%0.2fm", GetPlayerDistanceFromPoint(i, pInfo[i][PosW][0], pInfo[i][PosW][1], pInfo[i][PosW][2])), PlayerTextDrawSetString(i, RaceAr[i], SpStr);Multumesc pentru atentie, oricum.
Discord
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now