Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {$CLEO .cs}
- thread "TH3RM4L"
- 0B34: samp register_client_command ".cc" to_label @TH3RM4L_207
- 0@ = 0
- :TH3RM4L_40
- wait 0
- if
- 0@ == 1
- else_jump @TH3RM4L_40
- Actor.StorePos($PLAYER_ACTOR, 7@, 8@, 9@)
- 18@ = 146
- 19@ = 146
- wait 250
- 036A: put_actor $PLAYER_ACTOR in_car 6@ driver_seat
- wait 250
- 6@ = Actor.CurrentCar($PLAYER_ACTOR)
- 3@ = SAMP.GetSAMPVehicleIDByCarHandle(6@)
- SAMP.SendSCMEvent(3@, COLOR, 18@, 19@)
- wait 250
- 0229: set_car 6@ primary_color_to 18@ secondary_color_to 19@
- 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@
- 0@ = 0
- SAMP.CmdRet
- wait 100
- goto @TH3RM4L_40
- :TH3RM4L_207
- wait 0
- SAMP.IsCommandTyped(1@)
- if
- 0AD4: 2@ = scan_string 1@ format "%d" 3@
- else_jump @TH3RM4L_395
- if
- Actor.Driving($PLAYER_ACTOR)
- else_jump @TH3RM4L_474
- if
- SAMP.IsPlayerConnected(3@)
- else_jump @TH3RM4L_523
- 4@ = SAMP.GetActorHandleByPlayerID(3@)
- if
- 056D: actor 4@ defined
- else_jump @TH3RM4L_563
- if
- Actor.Driving(4@)
- else_jump @TH3RM4L_629
- 5@ = Actor.CurrentCar($PLAYER_ACTOR)
- 6@ = Actor.CurrentCar(4@)
- if and
- 056E: car 5@ defined
- 056E: car 6@ defined
- else_jump @TH3RM4L_770
- if and
- not Actor.InCar($PLAYER_ACTOR, 6@)
- not Actor.InCar(4@, 5@)
- else_jump @TH3RM4L_697
- 0@ = 1
- SAMP.CmdRet
- goto @TH3RM4L_40
- :TH3RM4L_395
- wait 0
- 0AF8: samp add_message_to_chat "USAGE: /.cc <ID>" color 12566463
- 0AF8: samp add_message_to_chat "Set target's car color to pink!" color 12566463
- SAMP.CmdRet
- goto @TH3RM4L_40
- :TH3RM4L_474
- wait 0
- 0AF8: samp add_message_to_chat "ERROR: You must be driving" color 12517890
- SAMP.CmdRet
- goto @TH3RM4L_40
- :TH3RM4L_523
- wait 0
- 0AF8: samp add_message_to_chat "ERROR: Invalid ID" color 12517890
- SAMP.CmdRet
- goto @TH3RM4L_40
- :TH3RM4L_563
- wait 0
- 0AF8: samp add_message_to_chat "ERROR: That player is too far away from you" color 12517890
- SAMP.CmdRet
- goto @TH3RM4L_40
- :TH3RM4L_629
- wait 0
- 0AF8: samp add_message_to_chat "ERROR: That player is not driving any vehicle" color 12517890
- SAMP.CmdRet
- goto @TH3RM4L_40
- :TH3RM4L_697
- wait 0
- 0AF8: samp add_message_to_chat "ERROR: You and that player are in the same vehicle" color 12517890
- SAMP.CmdRet
- goto @TH3RM4L_40
- :TH3RM4L_770
- wait 0
- 0AF8: samp add_message_to_chat "ERROR: Couldn't define the vehicles" color 12517890
- SAMP.CmdRet
- goto @TH3RM4L_40
Advertisement
Add Comment
Please, Sign In to add comment