Change NPC id?
#1

Hey, I have somewhere around 13 NPC's on my server, and when I join, I get ID 13 when i want id 0.
Is there any way to move the npcs so they get id 487 to 500 or something?

EDIT: It should be like a SetPlayerID(playerid, id) function
Reply
#2

you can't
Reply
#3

Quote:
Originally Posted by dice7
you can't
Not entirely true.
At OnGameModeInit, you can connect 50 'blank' NPCs, then connect your NPCs, then kick off the 'blank' NPCs
Reply
#4

It's yours :P
Reply
#5

Quote:
Originally Posted by Seif_
Quote:
Originally Posted by Joe Staff
Quote:
Originally Posted by dice7
Quote:
Originally Posted by Joe Staff
Quote:
Originally Posted by [NWA
Hannes ]
Hey, I have somewhere around 13 NPC's on my server, and when I join, I get ID 13 when i want id 0.
Is there any way to move the npcs so they get id 487 to 500 or something?

EDIT: It should be like a SetPlayerID(playerid, id) function
you can't
Not entirely true.
At OnGameModeInit, you can connect 50 'blank' NPCs, then connect your NPCs, then kick off the 'blank' NPCs
Brilliant idea, this could actually create SetPlayerID.
It's yours :P
How to connect blank npcs?
I really need this
Reply
#6

pawn Код:
public OnGameModeInit()
{
  new blanknpcamount;
  for(new playerid;playerid<GetMaxPlayers()-AMOUNTOFNPCS;playerid++) //Change AMOUNTOFNPCS to be the same of NPCs you plan on connecting
  {
    ConnectNPC("Jimbo","BLANK");
    blanknpcamount++;
  }
  //ConnectNPCs here
  for(new playerid;playerid<blanknpcamount;playerid++)Kick(playerid);
  return 1;
}
Reply
#7

Quote:
Originally Posted by Joe Staff
Quote:
Originally Posted by [NWA
Hannes ]
Quote:
Originally Posted by Seif_
Quote:
Originally Posted by Joe Staff
Quote:
Originally Posted by dice7
Quote:
Originally Posted by Joe Staff
Quote:
Originally Posted by [NWA
Hannes ]
Hey, I have somewhere around 13 NPC's on my server, and when I join, I get ID 13 when i want id 0.
Is there any way to move the npcs so they get id 487 to 500 or something?

EDIT: It should be like a SetPlayerID(playerid, id) function
you can't
Not entirely true.
At OnGameModeInit, you can connect 50 'blank' NPCs, then connect your NPCs, then kick off the 'blank' NPCs
Brilliant idea, this could actually create SetPlayerID.
It's yours :P
How to connect blank npcs?
I really need this
pawn Код:
public OnGameModeInit()
{
  new blanknpcamount;
  for(new playerid;playerid<GetMaxPlayers()-AMOUNTOFNPCS;playerid++) //Change AMOUNTOFNPCS to be the same of NPCs you plan on connecting
  {
    ConnectNPC("Jimbo","BLANK");
    blanknpcamount++;
  }
  //ConnectNPCs here
  for(new playerid;playerid<blanknpcamount;playerid++)Kick(playerid);
  return 1;
}
Please explain more in detail
Reply
#8

Bump
I really need that explained so i can use it
Reply
#9

Quote:
Originally Posted by Joe Staff
pawn Код:
public OnGameModeInit()
{
  new blanknpcamount;
  for(new playerid;playerid<GetMaxPlayers()-AMOUNTOFNPCS;playerid++)
  {
    ConnectNPC("Jimbo","BLANK");
    blanknpcamount++;
  }
  //ConnectNPCs here
  for(new playerid;playerid<blanknpcamount;playerid++)Kick(playerid);
  return 1;
}
Please explain more on how to use, i dont get it
Reply
#10

You will need to set different name for each NPC tho'.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)