NPC :( - 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 :( (
/showthread.php?tid=97607)
NPC :( -
Manku - 15.09.2009
All done.
A Train is there. But i dont see NPC and NPC isnt driving
a Engine system have.. is that problem ?
Re: NPC :( -
Sayaron - 15.09.2009
What? Can you explain this for us? I dont understand what you mean..
Re: NPC :( -
brett7 - 15.09.2009
have you loaded the correct fs?
Re: NPC :( -
Manku - 15.09.2009
fs? lol , im not using.
Server have
ENGINE system.
NPC doenst
DRIVE that
TRAIN.
I dont see a
NPC in train.
Re: NPC :( -
Sayaron - 15.09.2009
Quote:
Originally Posted by Manku
fs? lol , im not using.
Server have ENGINE system.
NPC doenst DRIVE that TRAIN.
I dont see a NPC in train.
|
Ah, I understand ur problem. Got kinda the same problem. The NPC's spawns in another world and just stays there. I got some commands that makes them spawn and start the engine, but still they dont wanna drive
Re: NPC :( -
Daem - 15.09.2009
OnGameModeInt
{
ConnectNPC("TRAIN_DRIVER_NAME_HERE_IN_OTHER_WORDS" , "FILTER_SCRIPT_HERE_INS'T_IT_?");
return 1;
}
OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid))
{
PutPlayerInVehicle(playerid, YOUR_TRAIN);
}
return 1;
}
![smiley](images/smilies/question.gif)
you can also check V1ceC1ty's NPCs scripts it can explain everything
![rolleyes](images/smilies/rolleyes.gif)
or
http://forum.sa-mp.com/index.php?topic=119947.0
Re: NPC :( -
Sayaron - 15.09.2009
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if (IsPlayerNPC(playerid))
{
SpawnPlayer(playerid);
return 1;
}
return 0;
}
Try using that, works for me
Re: NPC :( -
V1ceC1ty - 16.09.2009
make sure the fs is in the .cfg, recording files are in /npcmodes/recordings/, you have a working npc mode and a fs that connects the npc and then puts it in the vehicle.