TeHArGiS10

Untitled

May 30th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. {$CLEO .cs}
  2.  
  3. thread "TH3RM4L"
  4. 0B34: samp register_client_command ".cc" to_label @TH3RM4L_207
  5. 0@ = 0
  6.  
  7. :TH3RM4L_40
  8. wait 0
  9. if
  10. 0@ == 1
  11. else_jump @TH3RM4L_40
  12. Actor.StorePos($PLAYER_ACTOR, 7@, 8@, 9@)
  13. 18@ = 146
  14. 19@ = 146
  15. wait 250
  16. 036A: put_actor $PLAYER_ACTOR in_car 6@ driver_seat
  17. wait 250
  18. 6@ = Actor.CurrentCar($PLAYER_ACTOR)
  19. 3@ = SAMP.GetSAMPVehicleIDByCarHandle(6@)
  20. SAMP.SendSCMEvent(3@, COLOR, 18@, 19@)
  21. wait 250
  22. 0229: set_car 6@ primary_color_to 18@ secondary_color_to 19@
  23. wait 400
  24. 036A: put_actor $PLAYER_ACTOR in_car 5@
  25. 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
  26. 036A: put_actor $PLAYER_ACTOR in_car 5@
  27. 0@ = 0
  28. SAMP.CmdRet
  29. wait 100
  30. goto @TH3RM4L_40
  31.  
  32. :TH3RM4L_207
  33. wait 0
  34. SAMP.IsCommandTyped(1@)
  35. if
  36. 0AD4: 2@ = scan_string 1@ format "%d" 3@
  37. else_jump @TH3RM4L_395
  38. if
  39. Actor.Driving($PLAYER_ACTOR)
  40. else_jump @TH3RM4L_474
  41. if
  42. SAMP.IsPlayerConnected(3@)
  43. else_jump @TH3RM4L_523
  44. 4@ = SAMP.GetActorHandleByPlayerID(3@)
  45. if
  46. 056D: actor 4@ defined
  47. else_jump @TH3RM4L_563
  48. if
  49. Actor.Driving(4@)
  50. else_jump @TH3RM4L_629
  51. 5@ = Actor.CurrentCar($PLAYER_ACTOR)
  52. 6@ = Actor.CurrentCar(4@)
  53. if and
  54. 056E: car 5@ defined
  55. 056E: car 6@ defined
  56. else_jump @TH3RM4L_770
  57. if and
  58. not Actor.InCar($PLAYER_ACTOR, 6@)
  59. not Actor.InCar(4@, 5@)
  60. else_jump @TH3RM4L_697
  61. 0@ = 1
  62. SAMP.CmdRet
  63. goto @TH3RM4L_40
  64.  
  65. :TH3RM4L_395
  66. wait 0
  67. 0AF8: samp add_message_to_chat "USAGE: /.cc <ID>" color 12566463
  68. 0AF8: samp add_message_to_chat "Set target's car color to pink!" color 12566463
  69. SAMP.CmdRet
  70. goto @TH3RM4L_40
  71.  
  72. :TH3RM4L_474
  73. wait 0
  74. 0AF8: samp add_message_to_chat "ERROR: You must be driving" color 12517890
  75. SAMP.CmdRet
  76. goto @TH3RM4L_40
  77.  
  78. :TH3RM4L_523
  79. wait 0
  80. 0AF8: samp add_message_to_chat "ERROR: Invalid ID" color 12517890
  81. SAMP.CmdRet
  82. goto @TH3RM4L_40
  83.  
  84. :TH3RM4L_563
  85. wait 0
  86. 0AF8: samp add_message_to_chat "ERROR: That player is too far away from you" color 12517890
  87. SAMP.CmdRet
  88. goto @TH3RM4L_40
  89.  
  90. :TH3RM4L_629
  91. wait 0
  92. 0AF8: samp add_message_to_chat "ERROR: That player is not driving any vehicle" color 12517890
  93. SAMP.CmdRet
  94. goto @TH3RM4L_40
  95.  
  96. :TH3RM4L_697
  97. wait 0
  98. 0AF8: samp add_message_to_chat "ERROR: You and that player are in the same vehicle" color 12517890
  99. SAMP.CmdRet
  100. goto @TH3RM4L_40
  101.  
  102. :TH3RM4L_770
  103. wait 0
  104. 0AF8: samp add_message_to_chat "ERROR: Couldn't define the vehicles" color 12517890
  105. SAMP.CmdRet
  106. goto @TH3RM4L_40
Advertisement
Add Comment
Please, Sign In to add comment