help me. Npc.
#1

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;
}
Reply
#2

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

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

Ok. Thank you very mush.
Reply
#4

Np. Good luck
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)