Jump to content
  • 0

Sistem Premium pe vehicule


TheGodfather

Question

17 answers to this question

Recommended Posts

  • 0
Acum 3 ore, iSkull a spus:

Cauta task OneTimer si ai "foreach(new i : IsSpeed) GiveVehicleSpeed(i);" ii pui inainte //

Ar trebui sa dezactiveze acea derapare, e singurul lucru pe care l-am gasit la vehiculele personale, restul e pentru altceva

Ok, multumesc. Voi incerca si revin cu reply.

Link to comment
Share on other sites

  • 0
Acum 3 ore, iSkull a spus:

Cauta task OneTimer si ai "foreach(new i : IsSpeed) GiveVehicleSpeed(i);" ii pui inainte //

Ar trebui sa dezactiveze acea derapare, e singurul lucru pe care l-am gasit la vehiculele personale, restul e pentru altceva

function GiveVehicleSpeed(i) {
    if(ServerSystem[11] == 1 || !IsPlayerInAnyVehicle(i)) return true;
    
    new
        vehicleid = GetPlayerVehicleID(i),
        keys,
        Float:vx,
        Float:vy,
        Float:vz,
        carid = FindSpawnID(GetPlayerVehicleID(i))
    ;   

    if(GetVehicleSpeedUp(i, carid))
        return true;

    GetPlayerKeys(i, keys, _:vx, _:vx);

    if ((keys & (KEY_VEHICLE_FORWARD | KEY_VEHICLE_BACKWARD | KEY_HANDBRAKE)) == KEY_VEHICLE_FORWARD) {

        GetVehicleVelocity(vehicleid, vx, vy, vz);


        if (vx * vx + vy * vy < g_SpeedThreshold)
            return true;


        vx *= SPEED_MULTIPLIER;
        vy *= SPEED_MULTIPLIER;


        if (vz > 0.04 || vz < -0.04)
            vz -= 0.020;

        SetVehicleVelocity(vehicleid, vx, vy, vz);
    }
    return true;
}

Daca pun cum ai pus tu nu mai merge sistemul de stage, doar derapajul ala vreau sa il elimin

Link to comment
Share on other sites

  • 0
Acum 1 minut, iSkull a spus:

altceva nu ti-am gasit, aici depinde si ce masina folosesti, daca ai elegy e ceva normal, depinde mult si de roti, altceva nu ti-am gasit in gm

Am testat cu multe masini, infernus, nrg 500, sultan si toate derapau cand aveau sistemul premium mai repede ca in mod normal. 

Link to comment
Share on other sites

  • 0
Acum 1 minut, iSkull a spus:

presupun ca e cVip pentru sistemul premium, acolo am gasit doar pentru acel text si vehicle health, doar stage-ul e cel mai probabil de vina, e singurul pe velocity

mai e comanda /speed pentru admini 6, in rest nimic

cLegendary e pentru sistemul premium

Link to comment
Share on other sites

  • 0

tine de sistemul de stage, el iti adauga in foreach-ul IsSpeed, altceva nu mai e

cauta functia 

function GetVehicleSpeedUp(playerid, carid) {
	new x, m = CarInfo[carid][cMaxSpeed];
	x = CarInfo[carid][cLegendary] ? 300 : m;
	x = CarInfo[carid][cStage] ? StageSpeed[0][CarInfo[carid][cStage]]+x : x;
	return Carspeed(GetPlayerVehicleID(playerid)) < (m-3) || Carspeed(GetPlayerVehicleID(playerid)) > (x-3) ? (true) : (false);
}

si pune astfel

function GetVehicleSpeedUp(playerid, carid) {
	new x, m = CarInfo[carid][cMaxSpeed];
	x = CarInfo[carid][cStage] ? StageSpeed[0][CarInfo[carid][cStage]]+x : x;
	return Carspeed(GetPlayerVehicleID(playerid)) < (m-3) || Carspeed(GetPlayerVehicleID(playerid)) > (x-3) ? (true) : (false);
}

 

Edited by iSkull
Link to comment
Share on other sites

  • 0
Acum 2 ore, iSkull a spus:

tine de sistemul de stage, el iti adauga in foreach-ul IsSpeed, altceva nu mai e

cauta functia 

function GetVehicleSpeedUp(playerid, carid) {
	new x, m = CarInfo[carid][cMaxSpeed];
	x = CarInfo[carid][cLegendary] ? 300 : m;
	x = CarInfo[carid][cStage] ? StageSpeed[0][CarInfo[carid][cStage]]+x : x;
	return Carspeed(GetPlayerVehicleID(playerid)) < (m-3) || Carspeed(GetPlayerVehicleID(playerid)) > (x-3) ? (true) : (false);
}

si pune astfel

function GetVehicleSpeedUp(playerid, carid) {
	new x, m = CarInfo[carid][cMaxSpeed];
	x = CarInfo[carid][cStage] ? StageSpeed[0][CarInfo[carid][cStage]]+x : x;
	return Carspeed(GetPlayerVehicleID(playerid)) < (m-3) || Carspeed(GetPlayerVehicleID(playerid)) > (x-3) ? (true) : (false);
}

 

La fel face, nu mai merge stage-ul dar a dezactivat si deraparea aia.

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.

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