10.11.2010, 05:16
I've heard that you only can connect an NPC one time.
Try to kick the NPC and then reconnect? (That won't work, probaly)
So I know a GREAT plugin for you, so you don't need to record ANYTHING
Here it is: https://sampforum.blast.hk/showthread.php?tid=174671
Then you can Create a NPC: CreateNPC(npcid, name[]) note that the 'npcid' is really a kind of a 'playerid', if you give it a ID of a player that already exists, the player will crash
But whatever, after that, you can 'SetNPCPos' 'PutNPCInVehicle' etc...
And to let it drive: 'NPC_DriveTo' And you can let the walk the NPC to the vehicle, and then use the 'NPCSetKeys' to let him enter the vehicle
Good luck
Try to kick the NPC and then reconnect? (That won't work, probaly)
So I know a GREAT plugin for you, so you don't need to record ANYTHING
Here it is: https://sampforum.blast.hk/showthread.php?tid=174671
Then you can Create a NPC: CreateNPC(npcid, name[]) note that the 'npcid' is really a kind of a 'playerid', if you give it a ID of a player that already exists, the player will crash
But whatever, after that, you can 'SetNPCPos' 'PutNPCInVehicle' etc...
And to let it drive: 'NPC_DriveTo' And you can let the walk the NPC to the vehicle, and then use the 'NPCSetKeys' to let him enter the vehicle
Good luck