How to Script...
#1

I want to make that every player can move their Character's hand when they talk "In-Character".
Because when I talk In-Character, my character doesn't move the hands like Talking.
Reply
#2

https://sampwiki.blast.hk/wiki/ApplyAnimation
Reply
#3

Well I tried, but it doesn't work.. maybe is because I don't know how to do.. I am not a Pro Scripter :/
Reply
#4

Try this:

pawn Код:
// under OnPlayerText

ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
Reply
#5

Generally about Anims.
pawn Код:
if(strcmp(cmd, "/handsup", true) == 0)
{
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
    return 1;
}
Check Animations, ApplyAnimation.
Also, SetPlayerSpecialAction
Reply
#6

Quote:
Originally Posted by Kostas'
Посмотреть сообщение
Generally about Anims.
pawn Код:
if(strcmp(cmd, "/handsup", true) == 0)
{
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
    return 1;
}
Check Animations, ApplyAnimation.
Also, SetPlayerSpecialAction
What he wants is that, when you type something In-Character, the player applies an animation automatically, instead of using a CMD.
Reply
#7

My solution will work.

Tested.
Reply
#8

Quote:
Originally Posted by =WoR=G4M3Ov3r
Посмотреть сообщение
What he wants is that, when you type something In-Character, the player applies an animation automatically, instead of using a CMD.
My bad, xD
Reply
#9

Quote:
Originally Posted by grand.Theft.Otto
Посмотреть сообщение
Try this:

pawn Код:
// under OnPlayerText

ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
pawn Код:
public OnPlayerText(playerid, text[])
{
    // under OnPlayerText

    ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);

    if(FindIP(text)) return kick4IP(playerid, text);
    new sendername[MAX_PLAYER_NAME];
    new giveplayer[MAX_PLAYER_NAME];
    new tmp[128];
    new string[128];
    if(PlayerInfo[playerid][pHospital] == 1 || CanTalk[playerid] == 0)
    {
        return 0;
    }
    if(PlayerInfo[playerid][pMuted] == 1)
    {
        SendClientMessage(playerid, COLOR_GREY, "You can't speak, you're muted.");
        return 0;
    }
Well it works, but my character can't walk when he is talking..
Reply
#10

Delete that one and try this:

ApplyAnimation(playerid,"MISC","Idle_Chat_02",4.0, 0,0,0,0,0);

The one above is from the library called MISC, and is #2 of IDLE_CHAT.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)