Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot open.mp Questions and Suggestions [Suggestion] Ability to connect an NPC to a defined player ID

 
  • 0 Vote(s) - 0 Average
Suggestion Ability to connect an NPC to a defined player ID
EvilShadeZ
Offline

Burgershot Member
Posts: 21
Threads: 5
Joined: Apr 2019
Reputation: 2
#1
2020-04-16, 07:49 AM
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.
dreftas
Offline

Burgershot Member
Posts: 6
Threads: 0
Joined: Apr 2020
Reputation: 1
Location: Lithuania
#2
2020-04-16, 10:16 AM
Good one suggestion 👍👍
Y_Less
Offline

Administrator

Posts: 323
Threads: 16
Joined: Feb 2019
Reputation: 90
#3
2020-04-18, 11:23 AM
I thought NPCs were already allocated from MAX_PLAYERS down.
EvilShadeZ
Offline

Burgershot Member
Posts: 21
Threads: 5
Joined: Apr 2019
Reputation: 2
#4
2020-04-18, 02:10 PM
(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]
Freaksken
Offline

open.mp Developer

Posts: 80
Threads: 4
Joined: Feb 2019
Reputation: 6
Location: Belgium
#5
2020-04-18, 06:06 PM
(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.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode