how to let a player dance at playerclass
#1

hey guys,
i saw in many drift servers that when they can choose a player skin the skin is dancing and there is some music on the background but how to make this? i think it will fit nice to my server XD
niels
Reply
#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
#3

i don't have 0.3d... my samp_server just dont likes me gamemode :P anyway eehm how to do that for 0.3c?
Reply
#4

The animation is probably the same for 0.3c you just wont be able to play a song... That's my guess anyway :/
Reply
#5

Just use like.. ApplyAnimation under "OnPlayerRequestClass" ?
Reply
#6

Yup, I assume so.
Reply
#7

put this
Quote:

ApplyAnimation(playerid,"DANCING","DAN_DOWN_A",4.1 ,1,1,1,1,1);

on
Quote:

public OnPlayerRequestClass(playerid, classid)

pls gimme star :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)