animation does not work
#1


Good day,

I have in my script that in here:

Код:
 if (classid == 0 | | classid == 1 | | classid == 2)
(
ApplyAnimation (playerid, "PED", "FuckU" 4.0,1,0,0,0, -1); / / animation
SetPlayerTeam (playerid, TEAM_Grove);
   GameTextForPlayer (playerid, "Grove", 3000.3);
   gTeam [playerid] = TEAM_Grove;
   SetPlayerPos (playerid, -2030.6088,128.0149,34.2259) / / There is the Skin (Typ)
SetPlayerFacingAngle (playerid, 182.1571); / / As he looks down!?
SetPlayerCameraPos (playerid, -2030.2170,119.6429,34.2259) / / pos Camera
SetPlayerCameraLookAt (playerid, -2030.6088,128.0149,34.2259) / / The camera looks at this Cords:)
  return 1;
) [/ Code]


But that does not work that does not make this animation, why? can help me there one?
Reply
#2

This is under OnPlayerRequestClass ?
Reply
#3

Yes, it is
Reply
#4

Do it something like this
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{




    SetPlayerClass(playerid, classid);
    gPlayerClass[playerid] = classid;




    switch (classid) {
    case 0:
    {
      GameTextForPlayer(playerid, "~n~~n~~n~~b~The Sherrif Guys", 5000, 3);
        SetPlayerPos(playerid, -203.9715,987.0103,19.4205);
        ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.1,1,1,1,1,1);
        SetPlayerFacingAngle(playerid,269.2557);
        SetPlayerCameraPos(playerid,-199.4302,987.3214,19.3063);
        SetPlayerCameraLookAt(playerid,-203.9715,987.0103,19.4205);
    }
    case 1:
    {
      GameTextForPlayer(playerid, "~n~~n~~n~~b~The Sherrif Guys", 5000, 3);
        SetPlayerPos(playerid, -203.9715,987.0103,19.4205);
        ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.1,1,1,1,1,1);
        SetPlayerFacingAngle(playerid, 269.2557);
        SetPlayerCameraPos(playerid, -199.4302,987.3214,19.3063);
        SetPlayerCameraLookAt(playerid, -203.9715,987.0103,19.4205);
    }
    case 2:
    {
      GameTextForPlayer(playerid, "~n~~n~~n~~b~The Sherrif Guys", 5000, 3);
        SetPlayerPos(playerid, -203.9715,987.0103,19.4205);
        ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.1,1,1,1,1,1);
        SetPlayerFacingAngle(playerid, 269.2557);
        SetPlayerCameraPos(playerid, -199.4302,987.3214,19.3063);
        SetPlayerCameraLookAt(playerid,-203.9715,987.0103,19.4205);
    }
    case 3:
    {
      GameTextForPlayer(playerid, "~n~~n~~n~~b~The Sherrif Guys ~n~(Sniper)", 5000, 3);
        SetPlayerPos(playerid, -203.9715,987.0103,19.4205);
        ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.1,1,1,1,1,1);
        SetPlayerFacingAngle(playerid, 269.2557);
        SetPlayerCameraPos(playerid,-199.4302,987.3214,19.3063);
        SetPlayerCameraLookAt(playerid,-203.9715,987.0103,19.4205);
    }
    case 4:
    {
        GameTextForPlayer(playerid, "~n~~n~~n~~r~ Crazy Doctors", 5000, 3);
        SetPlayerPos(playerid,-308.0255,1081.2805,19.7422);
        ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.1,1,1,1,1,1);
        SetPlayerFacingAngle(playerid, 326.0539);
        SetPlayerCameraPos(playerid,-304.8446,1085.9741,20.5290);
        SetPlayerCameraLookAt(playerid,-308.0255,1081.2805,19.7422);
    }
    case 5:
    {
        GameTextForPlayer(playerid, "~n~~n~~n~~r~Crazy Doctors", 5000, 3);
        SetPlayerPos(playerid,-308.0255,1081.2805,19.7422);
        ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.1,1,1,1,1,1);
        SetPlayerFacingAngle(playerid, 326.0539);
        SetPlayerCameraPos(playerid, -304.8446,1085.9741,20.5290);
        SetPlayerCameraLookAt(playerid, -308.0255,1081.2805,19.7422);
    }


    }
    return 1;
}
    SetPlayerClass(playerid,classid)
    {
    if(classid == 0 || classid == 1 || classid == 2 || classid == 3 ) {
    gTeam[playerid] = 1;
    } else if(classid == 4 || classid == 5 || classid == 6 ) {
    gTeam[playerid] = 2;
    }

   }
Using case would be better
Reply
#5

I really want to change anything in my script
not do otherwise?

//EDIT//

not much change
one can please help me?
Reply
#6

It will be easier according to me ..
Reply
#7

it does not work
Reply
#8

How can you say it doesnt work , it works for me .. Very quick to blame .. This code works but you need to make changes according to your choices
Reply
#9


Anyway what have I done, it just does not work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)