animation problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: animation problem (
/showthread.php?tid=248332)
animation problem -
CrazyBlob - 13.04.2011
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
Re: animation problem -
sciman001 - 13.04.2011
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);
Re: animation problem -
CrazyBlob - 13.04.2011
dont worry fixed
ty nyway
Re: animation problem -
Stigg - 13.04.2011
pawn Код:
public OnPlayerConnect(playerid)
{
PreloadAnimLib(playerid,"SHOP");
return 1;
}
pawn Код:
PreloadAnimLib(playerid, animlib[])
{
ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
}
Re: animation problem -
sciman001 - 13.04.2011
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?
Re: animation problem -
Stigg - 13.04.2011
Yep.
Re: animation problem -
sciman001 - 13.04.2011
how i remove the animation? also, wheres the best list of anims? or, whats the dancing anim? THX!
Re: animation problem -
Stigg - 13.04.2011
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