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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NPC anim (
/showthread.php?tid=132812)
NPC anim -
losdementos - 09.03.2010
hi. i have 1 problem. How can i apply animation on NPC? I want apply him anim but it doesnt work. Can you give me example (or code ) ?
i want it with ApplyAnimation(.....);
Re: NPC anim -
losdementos - 10.03.2010
if (strcmp("/b", cmdtext, true) == 0)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "FBI_9", true))
{
ApplyAnimation(playerid,"BLOWJOBZ","BJ_STAND_END_W ",4.1,0,0,0,0,0);
}
}
return 1;
}
dont work
Re: NPC anim -
DjSterios - 10.03.2010
on NPC folder, there is a file, NPCNAME.pwn, right? There, you must put the command... you can use SendCommand function.
Reply and tell me if you need more help