SA-MP Forums Archive
Question about animations - 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)
+--- Thread: Question about animations (/showthread.php?tid=345430)



Question about animations - 2KY - 25.05.2012

I have a command:

pawn Код:
CMD:callvehicle( playerid, params[] )
{
    new
        vSlot,
        Float:p [ 3 ];
       
    if( sscanf( params, "i", vSlot ) )
        return SendClientMessage( playerid, c_HEADER, "USAGE: "#WHITE"/callvehicle [ vehicle slot ]" );
       
    if( accInfo [ playerid ] [ AlchemySkill ] < 3 )
        return NOAUTH;
       
    GetPlayerPos( playerid, p [ 0 ], p [ 1 ], p [ 2 ] );
       
    TogglePlayerControllable( playerid, false );
    p_SpawnedParticle [ playerid ] = CreateObject( 18682, p [ 0 ] + 5.0, p [ 1 ], p [ 2 ] + 1.50, 0.0, 0.0, 0.0 );
    SetTimerEx( "DestroyParticle", 5000, false, "ii", playerid, vSlot );

    ApplyAnimation( playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 1, 1, 1, 1, -1, 1 );
    ApplyAnimation( playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 1, 1, 1, 1, -1, 1 );
    return true;
}
What's wrong with this that's causing the animation not to show? (I even applied the animation twice, as I heard you don't have to preload them that way)


Re: Question about animations - Catalyst- - 25.05.2012

Does it work when typing the command twice?


Re: Question about animations - 2KY - 25.05.2012

Oddly enough, it's working now... *shrug* Thanks anyways.


Re: Question about animations - Jonny5 - 25.05.2012

Quote:
Originally Posted by 2KY
Посмотреть сообщение
Oddly enough, it's working now... *shrug* Thanks anyways.
gotta love it when that happens!

lol