SA-MP Forums Archive
[Tutorial] Add NPCs | Record NPC Paths | Play Animations - 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: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Add NPCs | Record NPC Paths | Play Animations (/showthread.php?tid=368378)



Add NPCs | Record NPC Paths | Play Animations - xSiiLenTx - 13.08.2012

[ame=www.youtube.com/watch?v=EeS-FbfAhi8]Click here for the tutorial[/ame]

Script Used:
Code:
#include <a_npc>
#define rec "npc_walking"
#define onfoot 2
 
main(){}
 
public OnRecordingPlaybackEnd() StartRecordingPlayback(onfoot,rec);
public OnNPCSpawn()
{
 SetMyPos(1521.5752,-1668.3490,13.5469);
 StartRecordingPlayback(onfoot,rec);
}
public OnPlayerStreamIn(playerid)
{
 SetTimer("SendCmd",3000,true);
}
 
forward SendCmd();
public SendCmd()
{
 SendCommand("/anim");
 return 1;
}[/cpp]
[cpp title="tutorial.pwn"]
// OnPlayerText
if(strcmp(cmdtext,"/anim",true)==0)
{
 ApplyAnimation(playerid,"ped","FALL_collapse",4.0,0,0,0,0,0);
 return 1;
}
 
// OnGameModeInit
ConnectNPC("Dave","npc_walk");



Re: Add NPCs | Record NPC Paths | Play Animations - Max_Coldheart - 13.08.2012

How is this a tutorial in any way? You do not explain ANYTHING. Not even one piece of code. This tutorial sucks.


Re: Add NPCs | Record NPC Paths | Play Animations - Coder_ - 13.08.2012

Quote:
Originally Posted by Max_Coldheart
View Post
How is this a tutorial in any way? You do not explain ANYTHING. Not even one piece of code. This tutorial sucks.
+1 Yeah this tutorial suck you didnt explain anything...


Re: Add NPCs | Record NPC Paths | Play Animations - xSiiLenTx - 13.08.2012

If you don't like it, then gtfo the thread?


Re: Add NPCs | Record NPC Paths | Play Animations - Cena44 - 15.08.2012

this is not a Chit chat topic, tutorials are made to teach people How-to create it, not:

a little thing here:
a little thingy there:
and add some things here:

otherwise it should be posted in the filterscripts thread, also regarding the "gtfo" thingy, this is a free forum, everyone is allowed to post anywhere/everywhere/anytime they want, as far as it doesn't breach the rules