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.
:bawww: :bawww:Code:0B57: samp 2@ = player 1@ animation_id
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
n
1@ = 1
Samp.CmdRet()