SA-MP Forums Archive
Animation not working - 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: Animation not working (/showthread.php?tid=664260)



Animation not working - Longover - 23.02.2019

The problem:
Animation to take a photo with camera not starting:

The code:
Код:
if(ZonaFoto[playerid] == 4)
	{
	    GivePlayerWeaponEx(playerid, 43, 1);
	    FotoCP[playerid] = 3;
	    DisablePlayerCheckpoint(playerid);
	    SetPlayerFacingAngle(playerid, 358.5769);
		ApplyAnimation(playerid, "CAMERA", "piccrch_take", 4.0, 0, 0, 0, 1000, 0);
		TogglePlayerControllable(playerid, false);
		SetTimerEx("UnFreezeStation", 2000, false, "i", playerid);
		SCM(playerid, COLOR_YELLOW, "SMS trimis la reporter (id necunoscut): Am facut poza,acum vin la tine.");
		SetCameraBehindPlayer(playerid);
		SetPlayerCheckpoint(playerid, DynamicFactions[9][fceX], DynamicFactions[9][fceY], DynamicFactions[9][fceZ] ,4.0);
	}
The functions/timers:
Код:
 SetTimerEx("UnFreezeStation", 2000, false, "i", playerid); // = Unfreeze player