NPC Anim - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: NPC Anim (
/showthread.php?tid=328265)
NPC Anim -
lukas567 - 24.03.2012
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;
}
Re: NPC Anim -
Vladamir - 24.03.2012
Quote:
Originally Posted by lukas567
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;
}
![Smiley](images/smilies/smile.png)
best of luck!