Help with Animations [iAnims]
#1

Hey SA-MP Forum,

I downloaded the iAnims IG creation Kit, works fine, i added my anims into my Script :

pawn Код:
CMD:stopa(playerid, params[])
{
    ClearAnimations(playerid);
    return 1;
}

CMD:drunk(playerid, params[])
{
   ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,0,1);
   return 1;
}

CMD:sit1(playerid, params[])
{
   ApplyAnimation(playerid,"BEACH","PARKSIT_M_LOOP",4.1,1,1,1,1,0,1);
   return 1;
}


COMMAND:gwalk1(playerid, params[])
{
    ApplyAnimation( playerid, "PED" , "WALK_GANG" , 2.0 , 0 , 1 , 1 , 0 , 0 , 1);
    return 1;
}

COMMAND:laugh(playerid, params[])
{
    ApplyAnimation( playerid, "RAPPING" , "LAUGH_01" , 2.0 , 0 , 1 , 1 , 0 , 0 , 1);
    return 1;
}

COMMAND:dkick(playerid, params[])
{
    ApplyAnimation( playerid, "POLICE" , "DOOR_KICK" , 2.0 , 0 , 1 , 1 , 0 , 0 , 1);
    return 1;
}
etc...

My question is now how can i make that the player is doing the anims permanently ? like i type /gwalk1 and the player walks forward. .. how can i make this? or /gs for the Gang Sign he does it only one time then i need to type again /gs ..
Reply
#2

To make it loop change the fifth parameter to 1, to make it run only once change it to 0, look at the underlined numbers in these examples:

Код:
    ApplyAnimation( playerid, "RAPPING" , "LAUGH_01" , 2.0 , 0 /*This number is set to 0, so the animation would run only once*/ , 1 , 1 , 0 , 0 , 1); //Runs only once
    ApplyAnimation( playerid, "RAPPING" , "LAUGH_01" , 2.0 , 1 /*This number is set to 1, so the animation would loop forever*/ , 1 , 1 , 0 , 0 , 1); //Loops
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)