Harrisonwells
Member
- Joined
- Jul 9, 2017
- Messages
- 18
- Reaction score
- 0
[shcode=cpp]
{$CLEO .cs}
0000:
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
WHILE TRUE
WAIT 0
IF AND
key_down 2 {Right Mouse}
key_down 66 {B Key}
THEN
IF 0AD2: 0@ = player $PLAYER_CHAR targeted_actor
THEN
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
say "/sellgun %d shotgun" 1@
wait 2000 /// Anti spam
END
END
END /// END WHILE TRUE
[/shcode]
Can someone help me with this code? everytime i RMB+B on someone it says player isn't near you
{$CLEO .cs}
0000:
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
WHILE TRUE
WAIT 0
IF AND
key_down 2 {Right Mouse}
key_down 66 {B Key}
THEN
IF 0AD2: 0@ = player $PLAYER_CHAR targeted_actor
THEN
0B2B: samp 1@ = get_player_id_by_actor_handle 0@
say "/sellgun %d shotgun" 1@
wait 2000 /// Anti spam
END
END
END /// END WHILE TRUE
[/shcode]
Can someone help me with this code? everytime i RMB+B on someone it says player isn't near you