[shcode=cpp]
if and
Dialog.CheckBoxIsChecked(4@, 10)
3@ == 0
then
// Draw Textdraws
if and
0818: actor $PLAYER_ACTOR in_air
0AB0: key_pressed 0x04
then 25@ = 1
end
if 25@ == 1
then 0B8D: samp set_cursor_mode 2
if 0AB0: key_pressed 0x01
then
0B5E: get_cursor_pos 26@ 27@
// 0B8F: convert_screen_coords 26@ 27@ depth 19@ to_world_3d 28@ 29@ 30@
00A1: put_actor $PLAYER_ACTOR at 28@ 29@ 30@
0B8D: samp set_cursor_mode 0
25@ = 0
end [/shcode]
when im in air and i want to be teleported to my cursor pos, this script don't tp me,but it give me the good coords via chatmsg "%f"%f" except Z coord(btw how can i get Z cursor pos?)
i want to do a function like s0beit has(mouse3-->mouse1--> tp you to the right cursor pos)
if and
Dialog.CheckBoxIsChecked(4@, 10)
3@ == 0
then
// Draw Textdraws
if and
0818: actor $PLAYER_ACTOR in_air
0AB0: key_pressed 0x04
then 25@ = 1
end
if 25@ == 1
then 0B8D: samp set_cursor_mode 2
if 0AB0: key_pressed 0x01
then
0B5E: get_cursor_pos 26@ 27@
// 0B8F: convert_screen_coords 26@ 27@ depth 19@ to_world_3d 28@ 29@ 30@
00A1: put_actor $PLAYER_ACTOR at 28@ 29@ 30@
0B8D: samp set_cursor_mode 0
25@ = 0
end [/shcode]
when im in air and i want to be teleported to my cursor pos, this script don't tp me,
i want to do a function like s0beit has(mouse3-->mouse1--> tp you to the right cursor pos)