05.12.2009, 13:17
Quote:
Originally Posted by Te3j4y
This script is pure genius dude, keep up the good work. I'd like to see more from you.
|
Originally Posted by Te3j4y
This script is pure genius dude, keep up the good work. I'd like to see more from you.
|
Originally Posted by mister_ic3
just a thought would this work with say a drifting script
|
Originally Posted by Nakki
Why it always say when i compile it.. it says
error 017: undefined symbol "SetVehicleVelocity" error 017: undefined symbol "GetVehicleVelocity" ?? |
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; }
#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;
}