about animation
#1

hey i setted my npc anim to

CMD:testanimnpc(playerid, params[])
{
ApplyAnimation(nowhere, "INT_SHOP", "SHOP_LOOP", 4.0, 0, 0, 0, 1, 0, 1); //
return 1;
}

when i use this it work when i'm in range of npc but when i go faraway and comeback i can't see animation anymore


what to do now?
Reply
#2

BUMPING THE HELL PROBLEM!
Reply
#3

https://sampwiki.blast.hk/wiki/OnPlayerStreamIn

pawn Код:
public OnPlayerStreamIn(playerid, forplayerid)
{
    if(IsPlayerNPC(playerid))
    {
        //If they are playing the animation...
        ApplyAnimation(playerid, "INT_SHOP", "SHOP_LOOP", 4.0, 1, 0, 0, 0, 0, 2);
    }
    return 1;
}
Reply
#4

thank mate
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)