SA-MP Forums Archive
How to add a simple NPC - 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 add a simple NPC (/showthread.php?tid=470458)



How to add a simple NPC - par30 - 18.10.2013

How to add a simple NPC
Please be easy
help me


Re: How to add a simple NPC - par30 - 18.10.2013

up


Re: How to add a simple NPC - par30 - 18.10.2013

help me


Re: How to add a simple NPC - Konstantinos - 18.10.2013

https://sampforum.blast.hk/showthread.php?tid=95034


Re: How to add a simple NPC - RedCountyRP - 18.10.2013

Is this what you're looking for? https://sampwiki.blast.hk/wiki/NPC:Main_Page


Re: How to add a simple NPC - par30 - 18.10.2013

Quote:

public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
if(strcmp(PlayerName(playerid), "customer") == 0)
{
SetPlayerPos(86,-1540.0477, 931.9312, 6.96);
SetPlayerPos(87,-1540.0477, 931.8312, 5.96);

}
return 1;
}
new string[128];
new pname[128];

GetPlayerName(playerid,pname,sizeof(pname));

what not show palyer ?!


Re: How to add a simple NPC - Konstantinos - 18.10.2013

If the NPC is type 'On foot', then you don't need to use OnPlayerSpawn.


Re: How to add a simple NPC - par30 - 18.10.2013

Can you help me to re-install npc?


Re: How to add a simple NPC - par30 - 18.10.2013

upppppp