[FilterScript] [FS] Burnout v2 [for SA:MP 0.3 and up]
#21

Quote:
Originally Posted by Te3j4y
This script is pure genius dude, keep up the good work. I'd like to see more from you.
I agree, it is awesome!
Reply
#22

Nice!!
Reply
#23

Quote:
Originally Posted by mister_ic3
just a thought would this work with say a drifting script
It would work with this filterscript jus fine:
http://forum.sa-mp.com/index.php?topic=137001.0
However, with many players online these two together may cause a little lag. I will release a new filterscript with these two and a few other racing scripts fused together soon. It will use much less cpu, than these two together.
Reply
#24

Nice filterscript, Thanks man
Reply
#25

Just, Awesome Kanis good job
Reply
#26

Why it always say when i compile it.. it says
error 017: undefined symbol "SetVehicleVelocity"
error 017: undefined symbol "GetVehicleVelocity" ??
Reply
#27

have you updated your SA-MP go to Sa-mp page and download the last version R4
Reply
#28

Quote:
Originally Posted by Nakki
Why it always say when i compile it.. it says
error 017: undefined symbol "SetVehicleVelocity"
error 017: undefined symbol "GetVehicleVelocity" ??
0.2X includes maybe?
Reply
#29

ok i tested it and its rely simple and cool

what you ned to doo

PRESS AND HOLD W and S and then turn LEFT then RIGHT 2 or 3 times(not with A and D)

what hepening?
you will get litle boost


nice work
Reply
#30

great...thx!
Reply
#31

Theres a little bug in it, when i keep pressing my honk button repeatedly, the car keeps accelerating regardless of burnout time. Even without burnout when i keep pressing it rapidly, whe car keeps accelerating up to speeds way over its limits.
Reply
#32

heres the fix for unburnable cars :P

pawn Code:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 406) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 432) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 444) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 481) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 485) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 486) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 496) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 514) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 515) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 530) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 531) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 532) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 556) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 557) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 559) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 565) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 572) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 583) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 589) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 432) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 445) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 401) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 404) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 410) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 430) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 430) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 435) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 436) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 440) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 441) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 446) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 449) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 450) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 452) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 453) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 454) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 464) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 465) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 472) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 473) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 474) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 479) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 484) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 493) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 501) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 509) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 510) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 516) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 539) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 539) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 540) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 550) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 595) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 564) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 584) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 590) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 591) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 594) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 606) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 607) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 608) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 610) { return false; }
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 611) { return false; }
Reply
#33

I made my own little version, I find this one alot better
pawn Code:
#define BURNOUT_INDEX 0.015

forward BurnoutFunc(playerid, vehicleid);
public BurnoutFunc(playerid, vehicleid)
{
    PlayerInfo[playerid][pBurnout]++;
    new keys, ud, lr;
    GetPlayerKeys(playerid, keys, ud, lr);
    if(PlayerInfo[playerid][pBurnout] > 10 && keys == 8)//VEHICLE_ACCELERATE
    {
        if(PlayerInfo[playerid][pBurnout] > 30) PlayerInfo[playerid][pBurnout] = 30;
        new Float:speed[2];
        GetXYInFrontOfVehicle(vehicleid, speed[0], speed[1], BURNOUT_INDEX * PlayerInfo[playerid][pBurnout]);
        AccelerateTowardsAPoint(vehicleid, speed[0], speed[1]);
        PlayerInfo[playerid][pBurnout] = 0;
        KillTimer(PlayerInfo[playerid][pBurnoutTimer]);
    }
    if(keys == ( KEY_SPRINT | KEY_JUMP )) return 1;//keys are still accelerating and braking
    if(keys != ( KEY_SPRINT | KEY_JUMP ) && keys != 8)//keys are now not related to accelerate and brake
    {
        PlayerInfo[playerid][pBurnout] = 0;
        KillTimer(PlayerInfo[playerid][pBurnoutTimer]);
    }
    return 1;
}

#define TURBO_DEDUCT_INDEX 135
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if ((newkeys & KEY_SPRINT) && (newkeys & KEY_JUMP) && IsPlayerInAnyVehicle(playerid))
    {
        PlayerInfo[playerid][pBurnout]++;
        PlayerInfo[playerid][pBurnoutTimer] = SetTimerEx("BurnoutFunc", 100, true, "ii", playerid, Current_Vehicle[playerid]);
    }
    if (RELEASED( KEY_SPRINT | KEY_JUMP ) && !(newkeys & 8))
    {
        if (IsPlayerInAnyVehicle(playerid) && PlayerInfo[playerid][pBurnout] > 0)
        {
            PlayerInfo[playerid][pBurnout] = 0;
            KillTimer(PlayerInfo[playerid][pBurnoutTimer]);
        }
    }
    return 1;
}
Theres a bug in yours, once you hit 10 burnout, it does the burnout

if (RELEASED( KEY_SPRINT | KEY_JUMP ) && !(newkeys & ) fixes it
Reply
#34

Any pictures on it? Seems pretty cool. Just wish you could edit your post with an image or video.
Reply
#35

Lots of bugs. I would rather use Kar's shorter and better version.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)