Animation doesn't work on spawn
#9

You can use Switch case

Код:
            TogglePlayerSpectating(playerid, false);
            SetPlayerPos(playerid, 4602.7427, 190.8927, 9.3325);
            Player_StreamPrep(playerid, 4602.7427, 190.8927, 9.3325, FREEZE_TIME);
            SetPlayerFacingAngle(playerid, 22.1796);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            SetHealth(playerid, 100);
            PlayerInfo[playerid][pConnectHours] = 30;
            ClearChatbox(playerid);  

	switch (classid)
	{

		case 0:
		{
		       //skin 270 with Dance Animation
			ApplyAnimation(playerid, "DANCING", "DNCE_M_A", 4.1, 1, 1, 1, 1, 1);
		}
                return 1;
       }
Set these according to your OnGamemodeInit Skins.
Reply


Messages In This Thread
Animation doesn't work on spawn - by IndependentGaming - 29.03.2018, 19:25
Re: Animation doesn't work on spawn - by IndependentGaming - 29.03.2018, 20:12
Re: Animation doesn't work on spawn - by IndependentGaming - 29.03.2018, 20:55
Re: Animation doesn't work on spawn - by YenTy - 29.03.2018, 21:02
Re: Animation doesn't work on spawn - by IndependentGaming - 29.03.2018, 21:05
Re: Animation doesn't work on spawn - by YenTy - 29.03.2018, 21:07
Re: Animation doesn't work on spawn - by IndependentGaming - 29.03.2018, 21:10
Re: Animation doesn't work on spawn - by YenTy - 29.03.2018, 21:20
Re: Animation doesn't work on spawn - by UFF - 30.03.2018, 06:06

Forum Jump:


Users browsing this thread: 1 Guest(s)