Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define COLOR_YELLOW 0xFFFF00AA
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- //Config
- #define JumpKey KEY_ACTION
- #define Jump 1
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("Car Jump Loaded");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- main(){}
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(newkeys & JumpKey) // Jump
- {
- new Float:vehx; new Float:vehy; new Float:vehz;
- GetVehicleVelocity(vehicleid,vehx,vehy,vehz);
- SetVehicleVelocity(vehicleid,vehx,vehy,0.3);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment