06.03.2014, 11:22
I want to make Animations and Class Selection with Music how can I do it like this:
[ame]http://www.youtube.com/watch?v=-Ea2CLAz3cc[/ame]
[ame]http://www.youtube.com/watch?v=-Ea2CLAz3cc[/ame]
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, x,y,z); //when player wants to select a skin,where do you want him to look at,,in the video it's alhambra..
SetPlayerFacingAngle(playerid, angle); //same for the pos but this means where do you want him to look at,north or ..
SetPlayerCameraPos(playerid, x,y,z); //where do you want his camera's pos at
SetPlayerCameraLookAt(playerid, x,y,z); //where do you want his camera to look at
return 1;
}
if(classid == 1) //lets say you added few classes using AddPlayerClass,and the first skin you set is for example 299,then this one should be:if he chose skin id 299
{
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,1,1); //to do chatting animation for example...
return 0;
}
ClearAnimations(playerid); //to stop the animation