14.03.2011, 04:43
Hello Guys. There is a small problem I have, I have tryed to get a NPC on my local server but it does not work. I see where the NPC connects (in the console) but he won't spawn.
As kc said, we can put If(IsPlayerNpc(playerid))return 1; at the nessary callbacks. I put mine on OnPlayerRequestSpawn and OnPlayerRequestClass. Also I tryed it with OnPlayerConnect but non seems to work. The npc connects just does not spawn.
EDIT: I went in the server and teleported to id 0 and he was there. but just standing at the place.
The NPC is not in a vehicle.
As kc said, we can put If(IsPlayerNpc(playerid))return 1; at the nessary callbacks. I put mine on OnPlayerRequestSpawn and OnPlayerRequestClass. Also I tryed it with OnPlayerConnect but non seems to work. The npc connects just does not spawn.
EDIT: I went in the server and teleported to id 0 and he was there. but just standing at the place.
The NPC is not in a vehicle.