CLEO Help Help

CLEO related
Status
Not open for further replies.

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
294
Reaction score
36
Location
Srbija
How to set player z pos like to get player pos and then - 10.0...
 

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
294
Reaction score
36
Location
Srbija
why not working?

Code:
WHILE TRUE
    wait 0
    if
    30@ == 1
    then
        00A0: store_actor $PLAYER_ACTOR position_to 0@ 1@ 2@
        0AF8: samp add_message_to_chat "{46FF00}You are downi!" color 0xFFFFFF
        000F: 2@ -= 10.0
    end
END
 

ItsRobinson

Active member
Joined
Nov 16, 2017
Messages
105
Reaction score
20
why not working?

Code:
WHILE TRUE
    wait 0
    if
    30@ == 1
    then
        00A0: store_actor $PLAYER_ACTOR position_to 0@ 1@ 2@
        0AF8: samp add_message_to_chat "{46FF00}You are downi!" color 0xFFFFFF
        000F: 2@ -= 10.0
    end
END

PHP:
00A1: put_actor $PLAYER_ACTOR at 0@ 1@ 2@
 

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
why not working?

Code:
WHILE TRUE
    wait 0
    if
    30@ == 1
    then
        00A0: store_actor $PLAYER_ACTOR position_to 0@ 1@ 2@
        0AF8: samp add_message_to_chat "{46FF00}You are downi!" color 0xFFFFFF
        000F: 2@ -= 10.0
    end
END
U forget 00a1 opcode
 

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
And how should I make it to do just once and then to turn off?
On key:
Code:
{$CLEO .cs}
0000: NOP
REPEAT
Wait 0
Until 0AFA: is_samp_structures_available

While True
Wait 0
If and
8B21: not samp is_chat_opened
8B4C: not samp is_dialog_active -1
0AB0: key_pressed 35 // 3
Then
00A0: store_actor $PLAYER_ACTOR position_to 0@ 1@ 2@
000F: 2@ -= 10.0
00A1: put_actor $PLAYER_ACTOR at 0@ 1@ 2@
wait 105
end
END

On cmd
Code:
{$CLEO .cs}
0000: NOP
REPEAT
Wait 0
Until 0AFA: is_samp_structures_available
0B34: "down" @DOWN

While True
Wait 0
END

:DOWN
00A0: store_actor $PLAYER_ACTOR position_to 0@ 1@ 2@
000F: 2@ -= 10.0
00A1: put_actor $PLAYER_ACTOR at 0@ 1@ 2@
CmdRet
 
Status
Not open for further replies.
Top