Chat anim while walking.
#2

Just grabbed this from an old GM of mine, hopefully you'll understand it:

pawn Код:
if(isnull(params))
    {
        SendClientMessageEx(playerid, COLOR_TEAL, "Type /TALK [0-3] for different settings.");
        SendClientMessageEx(playerid, COLOR_TEAL, "/talk 0 - Single animation, frozen.");
        SendClientMessageEx(playerid, COLOR_TEAL, "/talk 1 - Single animation, not frozen.");
        SendClientMessageEx(playerid, COLOR_TEAL, "/talk 2 - Looped animation, frozen.");
        SendClientMessageEx(playerid, COLOR_TEAL, "/talk 3 - Looped animation, not frozen.");
        return ApplyAnimation(playerid, "PED", "IDLE_CHAT",4.1,0,1,1,0,0);
    }
    switch(strval(params))
    {
        case 0: ApplyAnimation(playerid, "PED", "IDLE_CHAT",4.1,0,1,1,0,0);
        case 1: ApplyAnimation(playerid, "PED", "IDLE_CHAT",4.1,0,0,0,1,1);
        case 2:
        {
            ApplyAnimation(playerid, "PED", "IDLE_CHAT",4.1,1,1,1,0,0);
            pAnimating[playerid] = ANIM_PED;
        }
        case 3:
        {
            ApplyAnimation(playerid, "PED", "IDLE_CHAT",4.1,1,1,1,1,1);
            pAnimating[playerid] = ANIM_PED;
        }
    }
Take what you need.
Reply


Messages In This Thread
Chat anim while walking. - by PaulDinam - 11.03.2013, 23:01
Re: Chat anim while walking. - by MP2 - 11.03.2013, 23:43
Re: Chat anim while walking. - by PaulDinam - 12.03.2013, 13:45
Re: Chat anim while walking. - by Norrin - 20.12.2013, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)