ANIMATION x@
#7

No. An example, let's say you want to use the animlib of PED.
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) ;
}
That will preload the animation the first time you'll spawn so you can use it later.
Reply


Messages In This Thread
ANIMATION x@ - by AnonScripter - 11.11.2013, 18:13
Re: ANIMATION x@ - by Loot - 11.11.2013, 18:36
Re: ANIMATION x@ - by PrivatioBoni - 11.11.2013, 18:38
Re: ANIMATION x@ - by Konstantinos - 11.11.2013, 18:39
Re: ANIMATION x@ - by Alex Magaсa - 11.11.2013, 18:40
Re: ANIMATION x@ - by AnonScripter - 11.11.2013, 18:48
Re: ANIMATION x@ - by Konstantinos - 11.11.2013, 18:59
Re: ANIMATION x@ - by AnonScripter - 11.11.2013, 19:33
Re: ANIMATION x@ - by dominik523 - 11.11.2013, 20:19

Forum Jump:


Users browsing this thread: 3 Guest(s)