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


Messages In This Thread
help me. Npc. - by Nicholas999 - 06.05.2016, 05:31
Re: help me. Npc. - by Micko123 - 06.05.2016, 05:33
Re: help me. Npc. - by Nicholas999 - 07.05.2016, 21:35
Re: help me. Npc. - by Micko123 - 08.05.2016, 08:13

Forum Jump:


Users browsing this thread: 1 Guest(s)