animation problem
#1

ok so i put

Код:
OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
on a cmd and it doesnt do it first time i have to do it again for it to work and im preloading it


Код:
ApplyAnimation(playerid, "SHOP", "null", 0.0, 0, 0, 0, 0, 0);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
thats on onplayerspawn


help would be nice ty
Reply
#2

instead of this:
pawn Код:
ApplyAnimation(playerid, "SHOP", "null", 0.0, 0, 0, 0, 0, 0);
try this:
pawn Код:
ApplyAnimation(playerid, "SHOP", "null", 0.0, 0, 0, 0, 0, 0);
ApplyAnimation(playerid, "SHOP", "null", 0.0, 0, 0, 0, 0, 0);
Reply
#3

dont worry fixed ty nyway
Reply
#4

pawn Код:
public OnPlayerConnect(playerid)
{
    PreloadAnimLib(playerid,"SHOP");
    return 1;
}
pawn Код:
PreloadAnimLib(playerid, animlib[])
{
    ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
}
Reply
#5

Quote:
Originally Posted by Stigg
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    PreloadAnimLib(playerid,"SHOP");
    return 1;
}
pawn Код:
PreloadAnimLib(playerid, animlib[])
{
    ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
}
i didnt know that. thanks. that helps. can i make the player do an animation on onplayerrequestclass like that and then onplayerspawn turn it off?
Reply
#6

Yep.
Reply
#7

how i remove the animation? also, wheres the best list of anims? or, whats the dancing anim? THX!
Reply
#8

Quote:
Originally Posted by sciman001
Посмотреть сообщение
how i remove the animation? also, wheres the best list of anims? or, whats the dancing anim? THX!
pawn Код:
public OnPlayerSpawn(playerid)
{
    ClearAnimations(playerid);
    return 1;
}
https://sampwiki.blast.hk/wiki/Animations
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)