Advertisement
Guest User

CLEO Speed check Script

a guest
Jul 18th, 2011
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. {$CLEO .cs}
  2.  
  3. const
  4. PLAYER_CAR = 0@
  5. CAR_SPEED = 1@
  6. end
  7.  
  8. 0000:
  9.  
  10. :Start
  11. while true
  12. wait 250
  13. if
  14. Actor.Driving($PLAYER_ACTOR)
  15. then
  16. 03C0: PLAYER_CAR = actor $PLAYER_ACTOR car
  17. break
  18. end
  19. end
  20.  
  21. while true
  22. wait 0
  23. if and
  24. 01C1: car PLAYER_CAR stopped
  25. 00E1: player 0 pressed_key 10
  26. then
  27. 3@ = 60.0
  28. jump @Timer
  29. else
  30. if and
  31. 01C1: car PLAYER_CAR stopped
  32. 00E1: player 0 pressed_key 11
  33. then
  34. 3@ = 120.0
  35. jump @Timer
  36. else jump @Start
  37. end
  38. end
  39.  
  40. :Timer
  41. 32@ = 0
  42. repeat
  43. wait 0
  44. 32@ = 0
  45. if
  46. Actor.Driving($PLAYER_ACTOR)
  47. then
  48. 02E3: CAR_SPEED = car PLAYER_CAR speed
  49. 0513: show_text_box_1number "NUMBER" number 0 // ~1~
  50. else
  51. jump @Start
  52. end
  53. until CAR_SPEED > 0.0
  54.  
  55. repeat
  56. wait 0
  57. if
  58. Actor.Driving($PLAYER_ACTOR)
  59. then
  60. 02E3: CAR_SPEED = car PLAYER_CAR speed
  61. CAR_SPEED *= 2.356
  62.  
  63. 0092: 2@ = float CAR_SPEED to_integer
  64. 0513: show_text_box_1number "NUMBER" number 2@ // ~1~
  65. else
  66. jump @Start
  67. end
  68. until 0031: CAR_SPEED >= 3@
  69. 0513: show_text_box_1number "NUMBER" number 32@ // ~1~
  70. wait 3000
  71. 03E6: remove_text_box
  72. jump @Start
  73.  
  74. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement