SA-MP Forums Archive
[HELP]How To make NPC do an animation ? - 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: [HELP]How To make NPC do an animation ? (/showthread.php?tid=166755)



[HELP]How To make NPC do an animation ? - waim - 09.08.2010

Hello Guys .. I'm looking for Tutorial to force NPC To do an animation, I found this one http://forum.sa-mp.com/search.php?searchid=243202 But it doesn't work if you have another better way to do this Plz Help me and Thank you


Re: [HELP]How To make NPC do an animation ? - [L3th4l] - 09.08.2010

record your npc while you are doing an animation


Re: [HELP]How To make NPC do an animation ? - waim - 09.08.2010

Yeah I tried it but My Npc didn't do the anim i don't know why


Re: [HELP]How To make NPC do an animation ? - willsuckformoney - 09.08.2010

doing anim while recording fails hard it just moves the player, wont actually show it doing the anim. And truth be told i would love to know how too doo it too


Re: [HELP]How To make NPC do an animation ? - Fj0rtizFredde - 09.08.2010

I think it should be like this:
pawn Код:
public OnPlayerSpawn(playerid)
{  
if(IsPlayerNPC(playerid))
{    
new npcname[MAX_PLAYER_NAME];    
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "NAMEOFNPC", true))
{      
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 10000); //change the animation here
}    
return 1;  
}  
//Other stuff for normal players goes here!  
return 1;
}



Re: [HELP]How To make NPC do an animation ? - waim - 10.08.2010

Don't work


Re: [HELP]How To make NPC do an animation ? - waim - 10.08.2010

Help !! Please