SA-MP Forums Archive
A little NPC problem... - 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: A little NPC problem... (/showthread.php?tid=192529)



A little NPC problem... - ccconfy - 22.11.2010

First of all Im sorry but Im beginner. Im recording new NPC for my server based on Raven's script. Everything works great untill I try to add Bus driver. The bot is connecting and then standing at the spawn point without the BUS. Also in game I cant enter the bus untill I become Bus Driver. This causing? Thnx.....


Re: A little NPC problem... - Mauzen - 22.11.2010

Could be something with the script.
Go through it and look for OnPlayerStateChange or OnPlayerEnterVehicle. There should be a line like this:
pawn Код:
if(players[playerid][busdriver])
//change it to
if(players[playerid][busdriver] || IsPlayerNPC(playerid))
This will allow npcs to drive without license.
Maybe someone with more knowledge of ravens rp can explain it better, i never worked with it yet.


Re: A little NPC problem... - ccconfy - 22.11.2010

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
Could be something with the script.
Go through it and look for OnPlayerStateChange or OnPlayerEnterVehicle. There should be a line like this:
pawn Код:
if(players[playerid][busdriver])
//change it to
if(players[playerid][busdriver] || IsPlayerNPC(playerid))
This will allow npcs to drive without license.
Maybe someone with more knowledge of ravens rp can explain it better, i never worked with it yet.
Thanks for the amazingly fast reply but there is no such line in the script. And actually when I try to enter the bus I do and after that the bus is respawned and Im on foot. :S


Re: A little NPC problem... - ccconfy - 23.11.2010

Ok... Does anybody know how to make NPC a Bus Driver in Raven's RP?