Guest User

Vehicle Jumps by Christian Bojic

a guest
Aug 7th, 2010
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.14 KB | None | 0 0
  1. /* Simple Filterscript Car Jump by Christian Bojic
  2.  
  3.     ///////////   ////    ////   /////////      ////     /////////////////
  4.     ///////////   ////    ////   ///     //     ////     ////
  5.     ////          ////    ////   ///      //    ////     ////
  6.     ////          ////    ////   ///      //    ////     ////
  7.     ////          ////////////   ///////////    ////     /////////////////
  8.     ////          ////////////   /////          ////     /////////////////
  9.     ////          ////    ////   //////         ////                  ////
  10.     ////          ////    ////   ///  //        ////                  ////
  11.     ///////////   ////    ////   ///   //       ////                  ////
  12.     ///////////   ////    ////   ///    //      ////     /////////////////
  13. */
  14.  
  15. #include <a_samp>
  16.  
  17. #define PRESSED(%0) \
  18.     (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  19.    
  20. #define JumpKey             KEY_SUBMISSION
  21.  
  22. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  23. {
  24.     if (PRESSED(KEY_SUBMISSION))
  25.     {
  26.     new Float:x, Float:y, Float:z;
  27.     GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
  28.     SetVehicleVelocity(GetPlayerVehicleID(playerid) ,x ,y ,z+0.3);
  29.     }
  30.     return 1;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment