SA-MP Forums Archive
NPC for both players. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: NPC for both players. (/showthread.php?tid=433014)



NPC for both players. - JaKe Elite - 25.04.2013

Is it possible to run a NPC for both players

Example

Player 1 is in virtual world 1
Player 2 is in virtual world 2.

Can NPC can be played in both virtual world.

But NPC will not be played at the same movements in both players.

Example:

Player 1 - NPC bot is running
Player 2 - NPC bot is running

is it possible to not do this?

Instead

Player 1 - NPC bot is running
Player 2 - NPC bot is jumping

I need this in my server. My server requires NPC bot. A Challenge System.
I was wondering if i played NPC in the challenge then another player joins the challenge.
He will not see the NPC in the start line instead the NPC is already playing (because another player joins the challenge before him)


Re: NPC for both players. - zombieking - 25.04.2013

You'll have to connect two bots (one for each virtual world)


Re: NPC for both players. - MP2 - 25.04.2013

In short: An NPC can only appear in a single virtual world at a time.


Re: NPC for both players. - JaKe Elite - 25.04.2013

So it means it's impossible
However, I need a x (x is player slot of the server) i will play them per virtual world?

Here's the deal i will make a Gang Turf Game Storyline.
I need Gang Notorious Leaders.

I decided to make them as Player but if i i do that. Their game play will not be finished.
So i decided to make them as NPC.


Re: NPC for both players. - zombieking - 25.04.2013

You'll have to connect a bot for each virtual world, period.