• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Suggestion] Ability to connect an NPC to a defined player ID
#1
Being able to connect an NPC to a specific ID would help in terms of server development.?

Let's say my server has 100 player slots and I would like another 100 npc's, I would rather have them connected in slots 100-199 than being mixed in with regular players.



By having NPC's in higher slots, I can reduce Player Information array sizes to the appropriate size to only include players, meanwhile I could create NPC specific arrays that handle NPC-Specific?information.
  Reply
#2
Good one suggestion ????
  Reply
#3
I thought NPCs were already allocated from MAX_PLAYERS down.
  Reply
#4
(2020-04-18, 11:23 AM)Y_Less Wrote: I thought NPCs were already allocated from MAX_PLAYERS down.



Unfortunately that's not the case in SA-MP. They get assigned from ID 0 upwards. Quite messy when players get mixed in-between NPC slots.

I do like the idea of assigning them from MAX_PLAYERS down though.
[Image: qPwh60X.png]

  Reply
#5
(2020-04-18, 11:23 AM)Y_Less Wrote: I thought NPCs were already allocated from MAX_PLAYERS down.



That's an FCNPC feature.
Always keep in mind that a lot of people are active on this forum in their spare time.

They are sacrificing time they could easily spend on things they would rather do, to help you instead.

  Reply


Forum Jump: