how to let a player dance at playerclass - 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: how to let a player dance at playerclass (
/showthread.php?tid=305461)
how to let a player dance at playerclass -
niels44 - 22.12.2011
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
Re: how to let a player dance at playerclass -
Compton - 22.12.2011
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.
Re: how to let a player dance at playerclass -
niels44 - 23.12.2011
i don't have 0.3d... my samp_server just dont likes me gamemode :P anyway eehm how to do that for 0.3c?
Re: how to let a player dance at playerclass -
Mini` - 23.12.2011
The animation is probably the same for 0.3c you just wont be able to play a song... That's my guess anyway :/
Re: how to let a player dance at playerclass -
prisonliferp - 23.12.2011
Just use like.. ApplyAnimation under "OnPlayerRequestClass"

?
Re: how to let a player dance at playerclass -
Mini` - 23.12.2011
Yup, I assume so.
Re: how to let a player dance at playerclass -
ProdrifterX - 23.12.2011
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