Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Simple Filterscript Car Jump by Christian Bojic
- /////////// //// //// ///////// //// /////////////////
- /////////// //// //// /// // //// ////
- //// //// //// /// // //// ////
- //// //// //// /// // //// ////
- //// //////////// /////////// //// /////////////////
- //// //////////// ///// //// /////////////////
- //// //// //// ////// //// ////
- //// //// //// /// // //// ////
- /////////// //// //// /// // //// ////
- /////////// //// //// /// // //// /////////////////
- */
- #include <a_samp>
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- #define JumpKey KEY_SUBMISSION
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if (PRESSED(KEY_SUBMISSION))
- {
- new Float:x, Float:y, Float:z;
- GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
- SetVehicleVelocity(GetPlayerVehicleID(playerid) ,x ,y ,z+0.3);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment