TeHArGiS10

Untitled

Jul 8th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. {$CLEO .cs}
  2. 0000:
  3. thread "TehArgis - TrollBoss"
  4.  
  5. //-------------------------------COMMANDS-------------------------------
  6. 0B34: "tb.flip" @FLIP_CMD
  7. //-------------------------------COMMANDS-------------------------------
  8. 0@ = 0
  9. //-------------------------------MAIN-----------------------------------
  10. :MAIN
  11. wait 0
  12. if
  13. 0@ == 1
  14. then
  15. jump @FLIP_ACT
  16. end
  17. 0@ = 0
  18. SAMP.CmdRet()
  19. jump @MAIN
  20. //-------------------------------MAIN-----------------------------------
  21.  
  22. //-------------------------------ACTIONS--------------------------------
  23. :FLIP_ACT
  24. wait 0
  25. 6@ = Actor.CurrentCar(4@)
  26. Actor.StorePos($PLAYER_ACTOR, 7@, 8@, 9@)
  27. if
  28. Actor.Driving($PLAYER_ACTOR)
  29. then
  30. 5@ = Actor.CurrentCar($PLAYER_ACTOR)
  31. 036A: put_actor $PLAYER_ACTOR in_car 6@
  32. wait 150
  33. Car.SetSpeedInstantly(6@, 0.0)
  34. 0731: set_car 6@ y_angle_to -180
  35. wait 400
  36. 036A: put_actor $PLAYER_ACTOR in_car 5@
  37. 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
  38. 036A: put_actor $PLAYER_ACTOR in_car 5@
  39. else
  40. 0430: put_actor $PLAYER_ACTOR into_car 6@ passenger_seat -1
  41. wait 250
  42. 036A: put_actor $PLAYER_ACTOR in_car 6@
  43. wait 150
  44. Car.SetSpeedInstantly(6@, 0.0)
  45. 0731: set_car 6@ y_angle_to -180
  46. wait 400
  47. 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
  48. end
  49. 0@ = 0
  50. SAMP.CmdRet()
  51. jump @MAIN
  52. //-------------------------------ACTIONS--------------------------------
  53.  
  54. //-------------------------------COMMAND_CHECKS-------------------------
  55. :FLIP_CMD
  56. wait 0
  57. SAMP.IsCommandTyped(1@)
  58. if
  59. 0AD4: 2@ = scan_string 1@ format "%d" 3@
  60. then
  61. if
  62. SAMP.IsPlayerConnected(3@)
  63. then
  64. 4@ = SAMP.GetActorHandleByPlayerID(3@)
  65. if
  66. 056D: actor 4@ defined
  67. then
  68. if
  69. Actor.Driving(4@)
  70. then
  71. 0@ = 1
  72. else
  73. 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}-> {FF0000}tb.flip: {FFFFFF}Target must be driving!" 0xFFFFFF
  74. end
  75. else
  76. 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}-> {FF0000}tb.flip: {FFFFFF}Target too far away!" 0xFFFFFF
  77. end
  78. else
  79. 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}-> {FF0000}tb.flip: {FFFFFF}Invalid ID!" 0xFFFFFF
  80. end
  81. else
  82. 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}-> {FF0000}tb.flip: {FFFFFF}/tb.flip <ID>" 0xFFFFFF
  83. 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}-> {FF0000}tb.flip: {FFFFFF}Flip someone's car!" 0xFFFFFF
  84. end
  85. SAMP.CmdRet()
  86. jump @MAIN
  87. //-------------------------------COMMAND_CHECKS-------------------------
Advertisement
Add Comment
Please, Sign In to add comment