Change NPC id?
#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


Messages In This Thread
Change NPC id? - by bajskorv123 - 13.02.2010, 14:09
Re: Change NPC id? - by dice7 - 13.02.2010, 14:23
Re: Change NPC id? - by Joe Staff - 13.02.2010, 15:16
Re: Change NPC id? - by Joe Staff - 13.02.2010, 15:21
Re: Change NPC id? - by bajskorv123 - 13.02.2010, 15:21
Re: Change NPC id? - by Joe Staff - 13.02.2010, 15:25
Re: Change NPC id? - by bajskorv123 - 13.02.2010, 15:31
Re: Change NPC id? - by bajskorv123 - 14.02.2010, 08:19
Re: Change NPC id? - by bajskorv123 - 26.02.2010, 07:34
Re: Change NPC id? - by Sergei - 26.02.2010, 07:40

Forum Jump:


Users browsing this thread: 1 Guest(s)