how to let a player dance at playerclass
#2

It's done in public OnPlayerRequestClass

You just need to find some dancing animations and add the ApplyAnimation line to any of your skins.

Something like this(just an example):
Код:
public OnPlayerRequestClass(playerid, classid)
{
                SetPlayerPos(playerid,2518.0442,-134277.8872,14.4146);
		SetPlayerFacingAngle(playerid,100.0);
  		SetPlayerCameraPos(playerid, 2515.51345317,-1674345.4750,13.8125431);
		SetPlayerCameraLookAt(playerid, 2518.043542,-135677.887352,14.410359);
		GameTextForPlayer(playerid, "~g~Monkey", 2000, 6);
   		ApplyAnimation(playerid,"DANCING","DAN_DOWN_A",4.1,1,1,1,1,1);
                return 1;
}
As for the music, you can just add the new 0.3d Function PlayAudioStreamForPlayer under public OnPlayerConnect with any song you like.

-Hope It helped.
Reply


Messages In This Thread
how to let a player dance at playerclass - by niels44 - 22.12.2011, 15:42
Re: how to let a player dance at playerclass - by Compton - 22.12.2011, 15:59
Re: how to let a player dance at playerclass - by niels44 - 23.12.2011, 15:18
Re: how to let a player dance at playerclass - by Mini` - 23.12.2011, 16:20
Re: how to let a player dance at playerclass - by prisonliferp - 23.12.2011, 17:47
Re: how to let a player dance at playerclass - by Mini` - 23.12.2011, 18:00
Re: how to let a player dance at playerclass - by ProdrifterX - 23.12.2011, 18:04

Forum Jump:


Users browsing this thread: 1 Guest(s)