NPC Anim
#1

Hey!

Code:
  public OnPlayerStreamIn(playerid)
  {
     SendCommand("/strip");
     return 1;
  }
This code, in NPC.pwn file should make NPC to dance, but it's not dancing...

Command:

Code:
CMD:strip(playerid, params[])
{
   ApplyAnimation(playerid, "STRIP", "STR_A2B", 4.000000, 1, 0, 0, 0, 0, 1);
   return 1;
}
Reply
#2

Quote:
Originally Posted by lukas567
View Post
Hey!
Try something like this:
Code:
new npcname[MAX_PLAYER_NAME];
       GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "NPCNAME", true))
    {
        ApplyAnimation(playerid," ", ", , , , , ,); //Don't forget the ID
        return 1;
    }
best of luck!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)