NPC :(
#1

All done.

A Train is there. But i dont see NPC and NPC isnt driving

a Engine system have.. is that problem ?
Reply
#2

What? Can you explain this for us? I dont understand what you mean..
Reply
#3

have you loaded the correct fs?
Reply
#4

fs? lol , im not using.

Server have ENGINE system.
NPC doenst DRIVE that TRAIN.
I dont see a NPC in train.

Reply
#5

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

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;
}

you can also check V1ceC1ty's NPCs scripts it can explain everything
or
http://forum.sa-mp.com/index.php?topic=119947.0
Reply
#7

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
   
    if (IsPlayerNPC(playerid))
    {
      SpawnPlayer(playerid);
      return 1;
    }
    return 0;
}
Try using that, works for me
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)