11.11.2013, 18:59
No. An example, let's say you want to use the animlib of PED.
That will preload the animation the first time you'll spawn so you can use it later.
pawn Код:
// global:
new
bool: First_Spawn[ MAX_PLAYERS char ]
;
// OnPlayerConnect:
First_Spawn{ playerid } = true;
// OnPlayerSpawn:
if( First_Spawn{ playerid } )
{
PreloadAnimLib( playerid, "PED" );
First_Spawn{ playerid } = false;
}
// Where you want to use the animation
ApplyAnimation( playerid, "PED", "cower", 1, 1, 0, 0, 0, 0, 1 );
// at the bottom:
stock PreloadAnimLib( playerid, animlib[ ] )
{
ApplyAnimation( playerid, animlib, "null", 0.0, 0, 0, 0, 0, 0) ;
}