SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 24/03/2012, 11:34 AM   #1
lukas567
Big Clucker
 
Join Date: Jun 2011
Posts: 152
Reputation: 0
Default NPC Anim

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;
}
lukas567 is offline   Reply With Quote
Old 24/03/2012, 11:37 AM   #2
Vladamir
Little Clucker
 
Join Date: Mar 2012
Posts: 23
Reputation: 1
Default Re: NPC Anim

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!
Vladamir is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/run anim? lawonama Help Archive 2 18/07/2011 04:11 PM
Anim help. HV-RP Help Archive 5 26/06/2011 02:55 AM
What this anim? iman_indo Help Archive 1 13/05/2011 11:33 AM
/anim sit Sascha Help Archive 4 04/01/2011 11:55 AM
NPC anim losdementos Help Archive 2 10/03/2010 03:23 PM


All times are GMT. The time now is 02:29 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.