How to make this without that the player stop walking..?
#1

Hello, i made a ApplyAnimation command for if the player
talks you see a TalkAnimation with this script :

Quote:

public OnPlayerText(playerid, text[]){
ApplyAnimation(playerid,"PED","IDLE_CHAT",3.8,1,1, 1,0,1000);
return 1;
}

But when the player walks/runs and if he/she says something
the players stop from moving(Can't move) for 1 second it applies
the animation in that 1 second and then you can go walking after
animation is ended over 1 minute. But i want that the animation
continues when you walk, so you don't stop to talk..

Example of the problem :
(- = Running) (| = Stop from moving) (.: = Animation)
This happens :
Quote:

-----------------|.:---------------

Reply
#2

... Eh... *Scared Accent* : Bump..?
Reply
#3

Bump
Reply
#4

Check, if running key is pressed.
If yes, dont apply.

I dunno, if theres a run+chat animation,
i dont think so
Reply
#5

You can make a /togchatanim command easily.
pawn Код:
new TogChatAnim[MAX_PLAYERS];
OnPlayerConnect
pawn Код:
TogChatAnim[playerid] = 0;
pawn Код:
if(strcmp(cmd, "/togchatanim", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if (!TogChatAnim[playerid])
        {
            TogChatAnim[playerid] = 1;
            SendClientMessage(playerid, COLOR_GRAD2, "  You have togged your chat animation.");
        }
        else
        {
            TogChatAnim[playerid] = 0;
            SendClientMessage(playerid, COLOR_GRAD2, "  You can now see your chat anim.");
        }
    }
return 1;
}
pawn Код:
public OnPlayerText(playerid, text[]){
if(TogChatAnim[playerid]!=1)
{
ApplyAnimation(playerid,"PED","IDLE_CHAT",3.8,1,1,1,0,1000);
}
 
  return 1;
}
Reply
#6

Quote:
Originally Posted by Kartowka
You can make a /togchatanim command easily.
pawn Код:
new TogChatAnim[MAX_PLAYERS];
OnPlayerConnect
pawn Код:
TogChatAnim[playerid] = 0;
pawn Код:
if(strcmp(cmd, "/togchatanim", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if (!TogChatAnim[playerid])
        {
            TogChatAnim[playerid] = 1;
            SendClientMessage(playerid, COLOR_GRAD2, "  You have togged your chat animation.");
        }
        else
        {
            TogChatAnim[playerid] = 0;
            SendClientMessage(playerid, COLOR_GRAD2, "  You can now see your chat anim.");
        }
    }
return 1;
}
pawn Код:
public OnPlayerText(playerid, text[]){
if(TogChatAnim[playerid]!=1)
{
ApplyAnimation(playerid,"PED","IDLE_CHAT",3.8,1,1,1,0,1000);
}
 
  return 1;
}
Thanks but that's not really RP you know, i just want that the layer not stops moving when he does the naimation
Reply
#7

Bump, i see on almost every server this animation but if you talk
it uses the animation even if you are walking/running.. I only want
that the player uses the animation without stopping to start the animation.
Reply
#8

There is an appropriate animation, I've seen it on an RP server, but I don't know which one is that.
Reply
#9

I'm looking for this too.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)