25.05.2012, 01:12
I have a command:
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)
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;
}