My NPC have some problems. -
Kethrios - 02.12.2012
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 !
Re: My NPC have some problems. -
James Coral - 02.12.2012
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);
Re : My NPC have some problems. -
Kethrios - 02.12.2012
Hi,
They are not freezed and banned, just checked this.
What am I suppose to see in OnPlayerConnect and OnPlayerSpawn excatly ?
Thanks for helping.
Re: My NPC have some problems. -
James Coral - 02.12.2012
there should be like this: (or something like this)
pawn Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
}
return 1;
}
Re : My NPC have some problems. -
Kethrios - 02.12.2012
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
Re: My NPC have some problems. -
James Coral - 02.12.2012
but same in the
OnPlayerSpawn
BTW IF YOU THINK I HELPED THEN +REP