CLEO Help Vest help!

CLEO related
Status
Not open for further replies.

Husnain

Well-known member
Joined
May 20, 2016
Messages
228
Reaction score
9
Location
Mars
PHP:
:ARMOUR
wait 0
if
  0AD2: 3@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @ARMOUR
if
  056D: actor 3@ defined
jf @ARMOUR
jump @ARMOUR2

:ARMOUR2
wait 0
if
  0AB0:   key_pressed 12@
jf @ARMOUR2
0B2B: samp 4@ = get_player_id_by_actor_handle 3@  
0B79: samp set_chat_input_enabled 1
0C8F: samp process_chat_input "/guard %d 200" 4@
wait 14@
jump @ARMOUR  
Why is this not working in HZ-RP. It says "Invalid Player ID" and I already tick the "AS is"
 

noob213

Active member
Joined
Sep 15, 2017
Messages
88
Reaction score
6
use the opcode 0AF9:
Code:
while true
    wait 0
    if and
    0AB0:   key_pressed 12@
    0AD2: 3@ = player $PLAYER_CHAR targeted_actor //IF and SET
    then
        0B2B: samp 4@ = get_player_id_by_actor_handle 3@
        0AF9: samp say_msg "/guard %d 200" 4@ 
    end
end
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
[shcode=cpp]
{$CLEO .cs}

0000: NOP

REPEAT
WAIT 0
UNTIL 0AFA:



WHILE TRUE
wait 0

if
0AD2: 3@ = player $PLAYER_CHAR targeted_actor //IF and SET
then
if
056D: actor 3@ defined
then
if
0AB0: key_pressed 90
then
0B2B: samp 4@ = get_player_id_by_actor_handle 3@
0B79: samp set_chat_input_enabled 1
alloc 8@ 8
format 8@ "/guard %d 200" 4@
0B76: samp set_chat_input_text 8@
wait 1000
end
end
end

END
[/shcode]
 
Status
Not open for further replies.
Top