SA-MP Forums Archive
help me. 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: help me. Npc. (/showthread.php?tid=606563)



help me. Npc. - Nicholas999 - 06.05.2016

Npc not show on server. (samp 0.3e RC5)
#npcmodes
Test.pwn
Test.amx
#recordings
Test.rec
#Server.cfg
maxnpc 1
#gamemodes
#include <a_npc>
public OnGameModeInit()
{
ConnectNPC("American","Test");
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if (!strcmp(npcname, "American", true))
{
SetPlayerSkin(playerid, 191);
return 1;
}
return 1;
}
return 1;
}


Re: help me. Npc. - Micko123 - 06.05.2016

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

Scroll down and you will see conecting your npc. Hope this will help you


Re: help me. Npc. - Nicholas999 - 07.05.2016

Ok. Thank you very mush.


Re: help me. Npc. - Micko123 - 08.05.2016

Np. Good luck