SA-MP Forums Archive
Knpc FilterScript - 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: Knpc FilterScript (/showthread.php?tid=529248)



Knpc FilterScript - Seifspeed - 01.08.2014

I Downloaded This FilterScript Called KNPC, Basicly It's An Easy Way To Make NPCs Ingame But I Had Two Problems With It:

Doesn't Work In Interiors And It Gives A Marker On The HUD Like ShowPlayerMarkers.

For The Interior Part I Tried Going To My Gamemode And I Doing ThisDidn't Work)

Код:
public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid))
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "NpcName", true))// In This Script I Did Kurence1
    {
      SetPlayerInterior(playerid, 0);// For Ammunation
      PlayerInfo[playerid][pInteriorNr] = 14;
      return 1;
    }
  return 1;
}
For The ShowPlayerMarkers Part I Opened The FilterScript And Tried To Look For ShowPlayerMarkers Or Read It But I Couldn't Find Anything.

Please Help Me Out Because I really Want NPCs In My Bizzes And I Don't Want Them To Apear In The HUD.

Thanks In Advance I Will +Rep You.


Re: Knpc FilterScript - Mauzen - 01.08.2014

SetPlayerInterior(playerid, 0);// For Ammunation

Interior 0 is the default one, theres no ammunation. Looking at the next line you probably wanted a 14 here, not a 0.


Re : Re: Knpc FilterScript - Seifspeed - 01.08.2014

SetPlayerInterior(playerid, 7);// For Amunation*
Sorry .