Advertisement
Vovich

Untitled

Feb 24th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.85 KB | None | 0 0
  1. {$CLEO .cs}
  2. 0000:
  3. repeat
  4. wait 150
  5. until 0afa:
  6. 0B34: samp register_client_command "save" to_label @cmd
  7. while true
  8. wait 0
  9. if 0@ == true
  10. then
  11.  if 0C89:  key_just_pressed 103
  12.  then
  13.    if 00DF: actor $PLAYER_ACTOR driving
  14.    then
  15.    call @SYNC 0  
  16.    chatmsg "Date it trailer {00DD00}saved" -1
  17.    0@ = false
  18.    else
  19.    chatmsg "You not driving" -1
  20.    0@ = false
  21.    end
  22.  end
  23. end
  24. end
  25.  
  26.  
  27. :cmd
  28. if 0@ == false
  29. then
  30. 0@ = true
  31. else
  32. 0@ = false
  33. end
  34. SAMP.CmdRet()
  35.  
  36. :SYNC
  37. 04C4: store_coords_to 10@ 11@ 12@ from_actor $PLAYER_ACTOR with_offset 0.0 10.0 5.0
  38. 0B2B: samp 3@ = get_player_id_by_actor_handle $PLAYER_ACTOR
  39. alloc 4@ 55
  40. 0BBD: samp store_player 3@ trailer_data 4@
  41. 0C0D: struct 4@ offset 2 size 4 = 10@
  42. 0C0D: struct 4@ offset 6 size 4 = 11@
  43. 0C0D: struct 4@ offset 10 size 4 = 12@
  44. 0BC5: samp send_trailer_data 4@
  45. free 4@
  46. ret 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement