My NPC have some problems.
#1

Hi everyone !

Okay I've some bugs with my NPC's...
Here is the thing :

- The bus driver is flying, freezed in the air, and he's not in his car, why ?
- The bot train connect and disconnect when the server is ON, why ?

My Bots are coded in the GM, and the npcmodes, the records files are Okay. I don't know why it's happening.

Can you please help me ?
Thank you !


[UPDATED] : All NPC can now connect, but they're partying in the sky !
Reply
#2

I think someone "banned" and "Freezed" your NPCS check in "ban log"
and try /unfreeze for NPCS

If it dont work then check your

OnPlayerConnect(playerid);

or

OnPlayerSpawn(playerid);
Reply
#3

Hi,

They are not freezed and banned, just checked this.
What am I suppose to see in OnPlayerConnect and OnPlayerSpawn excatly ?

Thanks for helping.
Reply
#4

there should be like this: (or something like this)

pawn Код:
public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid)) return 1;
 }
 return 1;
}
Reply
#5

Okay, there was already there, I just puted the IsPlayerNPC at the very beginning.
Now the trains bot don't disconnect anymore.

But now, all the npc are in the sky
Reply
#6

but same in the

OnPlayerSpawn

BTW IF YOU THINK I HELPED THEN +REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)