Animations and Class Selection
#1

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]
Reply
#2

make under OnGameModeInit..
pawn Код:
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
and same for the other skins...float x means when player chooses this skin,this will be the position x of his spawn,and same for y and z
and
pawn Код:
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;
}
and to make him do animation use:
pawn Код:
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;
    }
and under OnPlayerSpawn
pawn Код:
ClearAnimations(playerid); //to stop the animation
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)