Knpc FilterScript
#1

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.
Reply
#2

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.
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)