SA-MP Forums Archive
How to create Npc and tell where the npc should spawn?? - 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: How to create Npc and tell where the npc should spawn?? (/showthread.php?tid=302889)



How to create Npc and tell where the npc should spawn?? - telefatguy88 - 10.12.2011

The title is the question


Re: How to create Npc and tell where the npc should spawn?? - [MG]Dimi - 10.12.2011

https://sampforum.blast.hk/showthread.php?tid=95034
And if you want to set his position (which is kinda useless since it will load info from file) use
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid)) SetPlayerPos(playerid,x,y,z);
    return 1;
}



Re: How to create Npc and tell where the npc should spawn?? - telefatguy88 - 10.12.2011

Thanks Alot!


Re: How to create Npc and tell where the npc should spawn?? - [MG]Dimi - 10.12.2011

No Problem. Just follow that Tutorial and you'll make it.


Re: How to create Npc and tell where the npc should spawn?? - telefatguy88 - 10.12.2011

also is it possible to make the npc attack??