Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {$CLEO .cs}
- 0000:
- thread "TehArgis - TrollBoss"
- //-------------------------------COMMANDS-------------------------------
- 0B34: "tb.flip" @FLIP_CMD
- //-------------------------------COMMANDS-------------------------------
- 0@ = 0
- //-------------------------------MAIN-----------------------------------
- :MAIN
- wait 0
- if
- 0@ == 1
- then
- jump @FLIP_ACT
- end
- 0@ = 0
- SAMP.CmdRet()
- jump @MAIN
- //-------------------------------MAIN-----------------------------------
- //-------------------------------ACTIONS--------------------------------
- :FLIP_ACT
- wait 0
- 6@ = Actor.CurrentCar(4@)
- Actor.StorePos($PLAYER_ACTOR, 7@, 8@, 9@)
- if
- Actor.Driving($PLAYER_ACTOR)
- then
- 5@ = Actor.CurrentCar($PLAYER_ACTOR)
- 036A: put_actor $PLAYER_ACTOR in_car 6@
- wait 150
- Car.SetSpeedInstantly(6@, 0.0)
- 0731: set_car 6@ y_angle_to -180
- wait 400
- 036A: put_actor $PLAYER_ACTOR in_car 5@
- 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
- 036A: put_actor $PLAYER_ACTOR in_car 5@
- else
- 0430: put_actor $PLAYER_ACTOR into_car 6@ passenger_seat -1
- wait 250
- 036A: put_actor $PLAYER_ACTOR in_car 6@
- wait 150
- Car.SetSpeedInstantly(6@, 0.0)
- 0731: set_car 6@ y_angle_to -180
- wait 400
- 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
- end
- 0@ = 0
- SAMP.CmdRet()
- jump @MAIN
- //-------------------------------ACTIONS--------------------------------
- //-------------------------------COMMAND_CHECKS-------------------------
- :FLIP_CMD
- wait 0
- SAMP.IsCommandTyped(1@)
- if
- 0AD4: 2@ = scan_string 1@ format "%d" 3@
- then
- if
- SAMP.IsPlayerConnected(3@)
- then
- 4@ = SAMP.GetActorHandleByPlayerID(3@)
- if
- 056D: actor 4@ defined
- then
- if
- Actor.Driving(4@)
- then
- 0@ = 1
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}-> {FF0000}tb.flip: {FFFFFF}Target must be driving!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}-> {FF0000}tb.flip: {FFFFFF}Target too far away!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}-> {FF0000}tb.flip: {FFFFFF}Invalid ID!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}-> {FF0000}tb.flip: {FFFFFF}/tb.flip <ID>" 0xFFFFFF
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}-> {FF0000}tb.flip: {FFFFFF}Flip someone's car!" 0xFFFFFF
- end
- SAMP.CmdRet()
- jump @MAIN
- //-------------------------------COMMAND_CHECKS-------------------------
Advertisement
Add Comment
Please, Sign In to add comment