Jump to content

[REZOLVAT] Cum post sa fac sa scada benzina.


TSN
 Share

Recommended Posts

Intrebare: Cum pot face sa scada benzina si la motoare? Deoarece imi scade doar la masini (am gm bugged)
Ai încercat să faci ceva înainte să postezi?: Nu, deoarece nu stiu de la ce provine.

?imw=5000&imh=5000&ima=fit&impolicy=Lett

Link to comment
Share on other sites

Daca e ca pe burned uite cum am rezolvat eu !

//Daca ai functia IsABike2 stergeo si adaugo pe asta :

function IsABike2(vehicleid) {
    switch (GetVehicleModel(vehicleid)) {
        case 448, 462, 463, 468, 471, 481, 509, 510, 521, 523, 568, 571, 581, 586: return true;
    }
    return false;
}

//Si mai adaugi functia isABike3 pe care o inlocuiesti la CMD:puthelmet !
function IsABike3(vehicleid) {
    switch (GetVehicleModel(vehicleid)) {
        case 448, 461, 462, 463, 468, 471, 481, 509, 510, 521, 522, 523, 568, 571, 581, 586: return true;
    }
    return false;
}

 

Sper ca te-am ajutat !

Link to comment
Share on other sites

Acum 50 minute, SorinGamerYT a spus:

Daca e ca pe burned uite cum am rezolvat eu !

//Daca ai functia IsABike2 stergeo si adaugo pe asta :

function IsABike2(vehicleid) {
    switch (GetVehicleModel(vehicleid)) {
        case 448, 462, 463, 468, 471, 481, 509, 510, 521, 523, 568, 571, 581, 586: return true;
    }
    return false;
}

//Si mai adaugi functia isABike3 pe care o inlocuiesti la CMD:puthelmet !
function IsABike3(vehicleid) {
    switch (GetVehicleModel(vehicleid)) {
        case 448, 461, 462, 463, 468, 471, 481, 509, 510, 521, 522, 523, 568, 571, 581, 586: return true;
    }
    return false;
}

 

Sper ca te-am ajutat !

Degeaba, si vezi ca ai uitat bike 461, la aia nu iti scade ????

?imw=5000&imh=5000&ima=fit&impolicy=Lett

Link to comment
Share on other sites

Creezi variabilele:

stock ToggleVehicleEngine(vehicleid, bool: Mode)
{
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    if(Mode == false) SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective);
    else SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_ON, lights, alarm, doors, bonnet, boot, objective);
}
 
stock GetPlayerSpeed(playerid)
{
        new Float:ST[4];
        if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),ST[0],ST[1],ST[2]); else GetPlayerVelocity(playerid,ST[0],ST[1],ST[2]);
        ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) + floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 180;
        return floatround(ST[3]);
}

Dacă le ai identice, du-te la:

function Checkvehinfo(i) {

Sub:

			if(!IsABike(vehicle) && !IsAPlane(vehicle)) format(str, sizeof(str), "Speed: ~y~%d~w~~h~ km/h~w~~h~~n~Odometer: %.2f~n~Radio: %s~n~%s~n~Fuel: %s%s", spe, CarInfo[carid][KM], GetVehicleRadio(vehicle), status, benzina, "%");

Adaugă:

			if(!IsABike2(vehicle) && !IsABike(vehicle)) format(str, sizeof(str), "Speed: ~y~%d~w~~h~ km/h~w~~h~~n~Odometer: %.2f~n~Radio: %s~n~%s~n~Fuel: %s%s", spe, CarInfo[carid][KM], GetVehicleRadio(vehicle), status, benzina, "%");

 

Discord: Jahen#4481

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...