SA-MP Forums Archive
[Help] make 2 animations together to work - 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: [Help] make 2 animations together to work (/showthread.php?tid=504357)



[Help] make 2 animations together to work - vegaltasendai - 03.04.2014

I'm doing the work constructor

I put 2 animations to work, make a first and second ajecute the other as is done? I have this in my FS images below

first animation



second animation




I have this on my FS (also press the back button to fire the animation will not be erased)


Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_FIRE)
    {
        if(TransportStup[playerid]) return SendClientMessage(playerid,-1, "Aviso : {00FF00}Ya recogistes mescla llevala arriba!");
        for(new i = 0x0; i != sizeof(PozitieStup); i++)
        {
            if(IsPlayerInRangeOfPoint(playerid,2.0,PozitieStup[i][0], PozitieStup[i][1], PozitieStup[i][2]))
            {
                
                ResetPlayerWeapons(playerid);
	        	SetPlayerAttachedObject(playerid, 1, 1329, 1,0.20,0.36,0.0,0.0,90.0, 0.0, 0.4, 0.3, 0.6);
                ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
                switch(random(3))
				{
				case 0: TransportStup[playerid] = !TransportStup[playerid], Pas[i]--, SendClientMessage(playerid,-1, "Aviso : {FFFFFF}Ya tienes mescla Llleva arriba!");
				case 1: TransportStup[playerid] = !TransportStup[playerid], Pas[i]--, SendClientMessage(playerid,-1, "Aviso :  {FFFFFF}Ya tienes mescla Llevala arriba!");
		    	
		 		}
                if(Pas[i] == 0) return SendClientMessage(playerid,-1, "Aviso : {FFFFFF}Aqui toma la {00FF00}mescla.");
                format(string,sizeof(string),"{00FF00}Aviso quedan{FF0000}%d Mesclas \nusa {FFFFFF}boton izq para recojer",Pas[i]);
                Update3DTextLabelText(label[i], 0xFFFFFFFF, string);
                break;
            }
        }
    }
    return 1;
}
I try the other animation is put ApplyAnimation (playerid, "CHAINSAW", "WEAPON_csaw" 4.1,1,0,0,0,11000);
unsuccessfully






((
sure to clarify that the second animation is ApplyAnimation (playerid, "CARRY", "crry_prtial" 4.0,1,0,0,1,1,1); and the e position))


Re: [Help] make 2 animations together to work - vegaltasendai - 17.04.2014

Help.


Re: [Help] make 2 animations together to work - Lajko1 - 17.04.2014

Umm you make first animation add timer so it will make another animation after some time? make timer accurate enough so it will look cool


Re: [Help] make 2 animations together to work - vegaltasendai - 17.04.2014

as I add the setimer?


Re: [Help] make 2 animations together to work - Lajko1 - 17.04.2014

Well yeah you have to add timer so one animation will be started after first one will be finished.. make it accurate enough as I said