Guest User

Untitled

a guest
Apr 20th, 2011
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. #include <a_samp>
  2. #define COLOR_YELLOW 0xFFFF00AA
  3. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  4. //Config
  5. #define JumpKey KEY_ACTION
  6.  
  7. #define Jump 1
  8. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print("Car Jump Loaded");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19. return 1;
  20. }
  21.  
  22.  
  23. main(){}
  24.  
  25. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  26. {
  27. new vehicleid = GetPlayerVehicleID(playerid);
  28. if(newkeys & JumpKey) // Jump
  29. {
  30. new Float:vehx; new Float:vehy; new Float:vehz;
  31. GetVehicleVelocity(vehicleid,vehx,vehy,vehz);
  32. SetVehicleVelocity(vehicleid,vehx,vehy,0.3);
  33. }
  34. return 1;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment