Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {$CLEO .cs}
- 0000:
- thread "TrollBoss"
- //-------------------------------COMMANDS-------------------------------
- 0B34: "tb.flip" @FLIP_CMD
- 0B34: "tb.fly" @FLY_CMD
- 0B34: "tb.fire" @FIRE_CMD
- 0B34: "tb.load" @LOAD_CMD
- 0B34: "tb.pop" @POP_CMD
- 0B34: "tb.color" @COLOR_CMD
- 0B34: "tb.ocean" @OCEAN_CMD
- //-------------------------------COMMANDS-------------------------------
- 0@ = 0
- //-------------------------------MAIN-----------------------------------
- :MAIN
- wait 0
- if
- 0@ == 1
- then
- jump @FLIP_ACT
- end
- if
- 0@ == 2
- then
- jump @FLY_ACT
- end
- if
- 0@ == 3
- then
- jump @FIRE_ACT
- end
- if
- 0@ == 4
- then
- jump @LOAD_ACT
- end
- if
- 0@ == 5
- then
- jump @POP_ACT
- end
- if
- 0@ == 6
- then
- jump @COLOR_ACT
- end
- if
- 0@ == 7
- then
- jump @OCEAN_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.0
- 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 500
- 036A: put_actor $PLAYER_ACTOR in_car 6@
- wait 150
- Car.SetSpeedInstantly(6@, 0.0)
- 0731: set_car 6@ y_angle_to -180.0
- wait 400
- 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
- end
- 0@ = 0
- SAMP.CmdRet()
- jump @MAIN
- :FLY_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
- 0407: store_coords_to 10@ 11@ 12@ from_car 6@ with_offset 0.0 0.0 150.0
- Car.PutAt(6@, 10@, 11@, 12@)
- wait 150
- Car.SetSpeedInstantly(6@, 350.0)
- wait 250
- 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 500
- 036A: put_actor $PLAYER_ACTOR in_car 6@
- wait 150
- 0407: store_coords_to 10@ 11@ 12@ from_car 6@ with_offset 0.0 0.0 150.0
- Car.PutAt(6@, 10@, 11@, 12@)
- wait 150
- Car.SetSpeedInstantly(6@, 350.0)
- wait 250
- 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
- end
- 0@ = 0
- SAMP.CmdRet()
- jump @MAIN
- :FIRE_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
- 0224: set_car 6@ health_to 200
- 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 500
- 036A: put_actor $PLAYER_ACTOR in_car 6@
- wait 150
- 0224: set_car 6@ health_to 200
- wait 400
- 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
- end
- 0@ = 0
- SAMP.CmdRet()
- jump @MAIN
- :LOAD_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 250
- Car.PutAt(6@, -1.792915E38, -1.25, 5019.66)
- 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 500
- 036A: put_actor $PLAYER_ACTOR in_car 6@
- wait 250
- Car.PutAt(6@, -1.792915E38, -1.25, 5019.66)
- wait 400
- 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
- end
- wait 250
- Camera.Restore_WithJumpCut()
- 0@ = 0
- SAMP.CmdRet()
- jump @MAIN
- :POP_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
- 04FE: deflate_tire 1 on_car 6@
- 04FE: deflate_tire 2 on_car 6@
- 04FE: deflate_tire 3 on_car 6@
- 04FE: deflate_tire 4 on_car 6@
- wait 250
- 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 500
- 036A: put_actor $PLAYER_ACTOR in_car 6@
- wait 150
- 04FE: deflate_tire 1 on_car 6@
- 04FE: deflate_tire 2 on_car 6@
- 04FE: deflate_tire 3 on_car 6@
- 04FE: deflate_tire 4 on_car 6@
- wait 250
- 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
- end
- 0@ = 0
- SAMP.CmdRet()
- jump @MAIN
- :COLOR_ACT
- wait 0
- 6@ = Actor.CurrentCar(4@)
- 10@ = SAMP.GetSAMPVehicleIDByCarHandle(6@)
- 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
- SAMP.SendSCMEvent(10@, COLOR, 11@, 12@)
- 0229: set_car 6@ primary_color_to 11@ secondary_color_to 12@
- 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 500
- 036A: put_actor $PLAYER_ACTOR in_car 6@
- wait 150
- SAMP.SendSCMEvent(10@, COLOR, 11@, 12@)
- 0229: set_car 6@ primary_color_to 11@ secondary_color_to 12@
- wait 400
- 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
- end
- 0@ = 0
- SAMP.CmdRet()
- jump @MAIN
- :OCEAN_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 250
- Car.PutAt(6@, -4000.0, 4000.0, -30.0)
- 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 500
- 036A: put_actor $PLAYER_ACTOR in_car 6@
- wait 250
- Car.PutAt(6@, -4000.0, 4000.0, -30.0)
- wait 400
- 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 7@ 8@ 9@
- end
- wait 250
- Camera.Restore_WithJumpCut()
- 0@ = 0
- SAMP.CmdRet()
- jump @MAIN
- //-------------------------------ACTIONS--------------------------------
- //-------------------------------COMMANDS-------------------------
- :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
- :FLY_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@ = 2
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.fly: {FFFFFF}Target must be driving!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.fly: {FFFFFF}Target too far away!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.fly: {FFFFFF}Invalid ID!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.fly: {FFFFFF}/tb.fly <ID>" 0xFFFFFF
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.fly: {FFFFFF}Make someone's car fly away!" 0xFFFFFF
- end
- SAMP.CmdRet()
- jump @MAIN
- :FIRE_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@ = 3
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.fire: {FFFFFF}Target must be driving!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.fire: {FFFFFF}Target too far away!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.fire: {FFFFFF}Invalid ID!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.fire: {FFFFFF}/tb.fire <ID>" 0xFFFFFF
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.fire: {FFFFFF}Put someone's car on fire!" 0xFFFFFF
- end
- SAMP.CmdRet()
- jump @MAIN
- :LOAD_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@ = 4
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.load: {FFFFFF}Target must be driving!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.load: {FFFFFF}Target too far away!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.load: {FFFFFF}Invalid ID!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.load: {FFFFFF}/tb.load <ID>" 0xFFFFFF
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.load: {FFFFFF}Throw someone to loading screen!" 0xFFFFFF
- end
- SAMP.CmdRet()
- jump @MAIN
- :POP_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@ = 5
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.pop: {FFFFFF}Target must be driving!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.pop: {FFFFFF}Target too far away!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.pop: {FFFFFF}Invalid ID!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.pop: {FFFFFF}/tb.pop <ID>" 0xFFFFFF
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.pop: {FFFFFF}Pop a car's tires!" 0xFFFFFF
- end
- SAMP.CmdRet()
- jump @MAIN
- :COLOR_CMD
- wait 0
- SAMP.IsCommandTyped(1@)
- if
- 0AD4: 2@ = scan_string 1@ format "%d %d %d" 3@ 11@ 12@
- then
- if
- SAMP.IsPlayerConnected(3@)
- then
- 4@ = SAMP.GetActorHandleByPlayerID(3@)
- if
- 056D: actor 4@ defined
- then
- if
- Actor.Driving(4@)
- then
- 0@ = 6
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.color: {FFFFFF}Target must be driving!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.color: {FFFFFF}Target too far away!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.color: {FFFFFF}Invalid ID!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.color: {FFFFFF}/tb.color <ID> <COLOR1> <COLOR2>" 0xFFFFFF
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.color: {FFFFFF}Change someone's car color!" 0xFFFFFF
- end
- SAMP.CmdRet()
- jump @MAIN
- :OCEAN_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@ = 7
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.ocean: {FFFFFF}Target must be driving!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.ocean: {FFFFFF}Target too far away!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.ocean: {FFFFFF}Invalid ID!" 0xFFFFFF
- end
- else
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.ocean: {FFFFFF}/tb.ocean <ID>" 0xFFFFFF
- 0AF8: samp add_message_to_chat "{FF0000}[TrollBoss] {FFFFFF}> {FF0000}tb.ocean: {FFFFFF}Teleport someone's car to the ocean!" 0xFFFFFF
- end
- SAMP.CmdRet()
- jump @MAIN
- //-------------------------------COMMANDS-------------------------
Advertisement
Add Comment
Please, Sign In to add comment