Advertisement
Guest User

SpeedBoost By UltraScripter

a guest
Nov 23rd, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. //By UltraScripter Thx For Downloading :)!!!. .. . . . . .
  2. ///////////////////////////////////////////////////////////
  3.  
  4. #include <a_samp>
  5.  
  6. #define RELEASED(%0) \
  7. (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
  8.  
  9. #if defined FILTERSCRIPT
  10.  
  11. #endif
  12.  
  13. public OnFilterScriptInit()
  14. {
  15. printf("Car SpeedBoost And Jump By UltraScripter Loaded Succes Fully !!! !!! !!!");
  16. return 1;
  17. }
  18.  
  19. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  20. {
  21. new Car, State, Float:x, Float:y, Float:z;
  22. Car = GetPlayerVehicleID(playerid);
  23. State = GetPlayerState(playerid);
  24. if(RELEASED(KEY_FIRE))
  25. {
  26. if(State == PLAYER_STATE_DRIVER)
  27. {
  28. GetVehicleVelocity(Car, x, y, z);
  29. SetVehicleVelocity(Car, x*2, y*2, z*2);
  30. }
  31. }
  32. if(RELEASED(KEY_CROUCH))
  33. {
  34. if(State == PLAYER_STATE_DRIVER)
  35. {
  36. SetVehicleVelocity(Car, x, y, z+0.4);
  37. }
  38. }
  39. return 1;
  40. }
  41.  
  42. //By UltraScripter Thx For Downloading :)!!!. .. . . . . .
  43. ///////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement