CLEO Help [Help] Anim IDs .

CLEO related
Status
Not open for further replies.

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
I can't seem to find a way to get anims ID , i can only find anims names not IDs so i stuck with this opcode.
Code:
0B57: samp 2@ = player 1@ animation_id
:bawww: :bawww:
 

HenryTeylor

Active member
Joined
Sep 13, 2014
Messages
33
Reaction score
0
D.Kay link said:
I can't seem to find a way to get anims ID , i can only find anims names not IDs so i stuck with this opcode.
Code:
0B57: samp 2@ = player 1@ animation_id
:bawww: :bawww:

1@ = Samp.GetSAMPPlayerIDByActorHandle($PLAYER_ACTOR)
2@ = Samp.PlayerAnimationID(1@)

{$CLEO}
0000: NOP

thread "lesson"

if not 0@ = SAMP.Base()
then 0A93: end_custom_thread
end
while not SAMP.Available()
wait 100
end

0B34: samp register_client_command "lesson" to_label @on

while true
wait 0
    if 1@ == 1
    then
    1@ = Samp.GetSAMPPlayerIDByActorHandle($PLAYER_ACTOR)
    alloc 2@ 8
    2@ = Samp.PlayerAnimationID(1@)
    0af8: "My animation ID: %d" 0xffffff 2@
    free 2@
    1@ = 0
    end
end
:eek:n
1@ = 1
Samp.CmdRet()

73ryjNi.png
  :hellno:
 
Status
Not open for further replies.
Top