SA-MP Forums Archive
NPC Bug, The NPC Gets out of the vehicle. Please help! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NPC Bug, The NPC Gets out of the vehicle. Please help! (/showthread.php?tid=96120)



NPC Bug, The NPC Gets out of the vehicle. Please help! - _Ben_[Fux-c.co.il RP] - 06.09.2009

***Sorry for the bus mode, because the bus got bugged XD****

Here picture:
/imageshack/img6/3140/samp098q.png

The man is out of the bus and he not driving.


The second picture, is when I teleport to him what i see:
/imageshack/img180/5812/samp099.png



How to fix that thing?
I searched on my mode "RemoverPlayerFromVehicle"
And function I see, I add before "if(IsPlayerNPC(playerid)........ return 1; }"

And still doesn't any change.





Re: NPC Bug, The NPC Gets out of the vehicle. - FUNExtreme - 06.09.2009

You have to record the track with the same vehicle as the bot will use. Wich means that you have to use a bus to record.
If this aint the problem. Try using kc's tutorial


Re: NPC Bug, The NPC Gets out of the vehicle. - _Ben_[Fux-c.co.il RP] - 06.09.2009

Quote:
Originally Posted by FUNExtreme
1. You have to record the track with the same vehicle as the bot will use. Wich means that you have to use a bus to record.
2. If this aint the problem. Try using kc's tutorial
1. Thats what I did... I record with the bus.
2. How do you think I create the bot? I use kc's tutorial offcourse


Re: NPC Bug, The NPC Gets out of the vehicle. - FUNExtreme - 06.09.2009

Do you use CreateVehicle or AddStaticVehicle?


Re: NPC Bug, The NPC Gets out of the vehicle. - _Ben_[Fux-c.co.il RP] - 06.09.2009

Quote:
Originally Posted by FUNExtreme
Do you use CreateVehicle or AddStaticVehicle?
AddStaticVehicle


Re: NPC Bug, The NPC Gets out of the vehicle. - FUNExtreme - 06.09.2009

Tell me:
- .rec name
- the npcmode script


Re: NPC Bug, The NPC Gets out of the vehicle. - Virtual1ty - 06.09.2009

Same thing happens to me,, like every 3~5 secs the bot gets out of the vehicle, maybe its just with the new client , idk...


Re: NPC Bug, The NPC Gets out of the vehicle. - Kyle - 06.09.2009

It works fine for me :S


Re: NPC Bug, The NPC Gets out of the vehicle. - _Ben_[Fux-c.co.il RP] - 06.09.2009

Quote:
Originally Posted by FUNExtreme
Tell me:
- .rec name
- the npcmode script
record file name:
Bus.rec

NPCmode:
BusRoute

(Offcourse I wrote in "BusRoute" the .rec file at the first line.)

Here is what I did in OnGameModeInit:
ConnectNPC("Bus_Man","BusRoute");


Re: NPC Bug, The NPC Gets out of the vehicle. Please help! - _Ben_[Fux-c.co.il RP] - 06.09.2009

Managers, Lock this topic please