News:

Server address: server.convoytrucking.net
Get SA-MP 0.3.7 here: Click Here to download SA-MP 0.3.7

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Avenger

#1
now that im flying, it's just sometime i click gang break and loose control like right now in the server i flipped because i lost control goin 100 mph-_-
anyways the loop/repeat whatever..
and i don't have any mods...
#2
I actually tried to loop from timers but i failed -_-
anyways even with hand break sometimes you hit something which causes you to fly lol...
#3
Well as rubber said, yes, but sometime when im going fast downhill and i break and loose control of the truck and have to fail a mission because my trailer falls in the water  :-\ so this would be good to slow down the vehicle, and i would make it so you just click and hold FIRE_KEY but i couldn't get a timer that loops :/
#4
ok so i have updated the script, apparently that code had a really bad bug on it where when u press accelerate it just stops, so i remade it.
#5
can you move the thread?
i don't wanna make another thread, might be spam...
#6
with our without the script?
#7
Well i actually really want this to be in the server, seeing how trucks have this in real life aswell...
Well it's an engine break slows down the vehicle SLOWLY ...
anyways here it is i will explain


public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if ((oldkeys & KEY_FIRE) && !(newkeys & KEY_FIRE))
    {
        if(IsPlayerInAnyVehicle(playerid)) SlowDownVehicle(playerid);
    }
    return 1;
}



stock SlowDownVehicle(playerid)
{
     new Float:vx,Float:vy,Float:vz;
     GetVehicleVelocity(GetPlayerVehicleID(playerid),vx,vy,vz);
     SetVehicleVelocity(GetPlayerVehicleID(playerid), vx * 0.9, vy *0.9, vz * 0.9);
     return 1;
}


0.8 slowed down the vehicle kinda to fast but 0.9 it just at the spot :D

Well here you have it,
This code has been tested and work really great it took me a while to get it working but i did it :D well i REALLY hope this code will be accepted to the server i would love to use this when going downhill with a truck instead of braking :D plus will make server a little more realistic.

thank you for reading :D

BTW:
if you put ear phones on you can actually hear it slowing down :D