SA-MP Forums Archive
is it possible to make it when player puts his N20 ON he gets a boost - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: is it possible to make it when player puts his N20 ON he gets a boost (/showthread.php?tid=347674)



is it possible to make it when player puts his N20 ON he gets a boost - niels44 - 02.06.2012

hey guys,

is it possible to make it that when a player puts his N20/NOS on he gets a boost? like in F&F?

i know there is a SpeedBoost Filterscript but i want it htat it only works when putting NOS on and it only is about like 2 or 3 seconds...

is this possible?

greets niels


Re: is it possible to make it when player puts his N20 ON he gets a boost - leonardo1434 - 02.06.2012

Do you mean " super velocity"? or a kind of "super jump"?


Re: is it possible to make it when player puts his N20 ON he gets a boost - niels44 - 02.06.2012

no eehm, that when pressing KEY_FIRE, the NOS key(nitro), then you get a boost... like in Fast and furious....
..
and yes i mean kinda super velocity...
if tomorrow still no more replies i will post vid here

greets niels

i hope you guys know wut i mean


Re: is it possible to make it when player puts his N20 ON he gets a boost - leonardo1434 - 02.06.2012

Just one thing, it's for cars or players use that?

i guess i found what you want...

https://sampforum.blast.hk/showthread.php?tid=314604


Re: is it possible to make it when player puts his N20 ON he gets a boost - Vince - 02.06.2012

GetPlayerVelocity, multiply with 1.3 or something, SetPlayerVelocity. That's the basic idea.


Re: is it possible to make it when player puts his N20 ON he gets a boost - SnG.Scot_MisCuDI - 02.06.2012

pawn Код:
BoostVeh(vid, Float:dis = 0.24)
{
    new Float:T[4];
    GetVehicleVelocity(vid, T[0], T[1], T[2]);
    GetVehicleZAngle(vid, T[3]);
    SetVehicleVelocity(vid,floatadd(T[0],floatmul(dis,floatsin(-T[3],degrees))), floatadd(T[1],floatmul(dis,floatcos(-T[3],degrees))), T[2]);
    return 1;
}

thats my boost but its like a super boost. mess around with it