Help me about animation
#8

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
Please show me the code you're using, this can't be used without checking for the exact anim.
Код:
cmd:fixcar(playerid, params[])
{
          if(PI[playerid][pJob] == MECHANIC_MAN)
          {
                    if(IsPlayerInAnyVehicle(playerid))
		    {
		               SendClientMessageEx(playerid, RED, "You can not repair your car while in the car.");
		               return 1;
		    }
                    if(GetPlayerAnimationIndex(playerid))
	            {
	                       SendClientMessageEx(playerid, RED, "Please check that you are taking any action.");
                               return 1;
	            }
	            if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_NONE)
                    {
                               SendClientMessageEx(playerid, RED, "Please check that you are taking any action.");
                               return 1;
                    }
                    else
                    {
                               ApplyAnimation(playerid, "BD_FIRE", "wash_up", 4.0, 1, 0, 0, 0, 0, 1);
                               SendClientMessageEx(playerid, GREEN, "You are starting to repair car.");
                               return 1;
                    }
          }
          return 1;
}
Reply


Messages In This Thread
Help me about animation - by hoanduy - 25.02.2018, 13:22
Re: Help me about animation - by RogueDrifter - 25.02.2018, 13:32
Re: Help me about animation - by hoanduy - 25.02.2018, 13:43
Re: Help me about animation - by RogueDrifter - 25.02.2018, 14:06
Re: Help me about animation - by hoanduy - 25.02.2018, 14:11
Re: Help me about animation - by hoanduy - 25.02.2018, 14:35
Re: Help me about animation - by RogueDrifter - 25.02.2018, 15:49
Re: Help me about animation - by hoanduy - 26.02.2018, 04:02
Re: Help me about animation - by DobbysGamertag - 26.02.2018, 04:18
Re: Help me about animation - by Dayrion - 26.02.2018, 07:38

Forum Jump:


Users browsing this thread: 1 Guest(s)