A little NPC problem...
#1

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.....
Reply
#2

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.
Reply
#3

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
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)