Train
#8

You must use ConnectNPC to be able to see your NPC in game.
After looking at the SA-MP Wiki, you can see the following format:
pawn Код:
ConnectNPC(name[], script[])
Now to know what to put on name[] and script[], here's an explanation of each: (SA-MP Wiki's)
Код:
name[]	The name the NPC should connect as. Must follow the same rules as normal player names.
script[]	The NPC script name that is located in the npcmodes folder (without the .amx extension).
So just give your NPC a name on the first parameter, and the script name from npcmodes folder for the second one.

Note: Make sure you place the ConnectNPC under OnGameModeInIt else it will NOT work.
Reply


Messages In This Thread
Train - by NathNathii - 04.04.2013, 17:22
Re: Train - by NathNathii - 15.08.2013, 23:17
Re: Train - by NathNathii - 17.08.2013, 11:59
Re: Train - by Dopefull - 17.08.2013, 12:35
Re: Train - by Kells - 17.08.2013, 13:00
Re: Train - by NathNathii - 17.08.2013, 14:37
Re: Train - by Dopefull - 18.08.2013, 13:50
Re: Train - by JimmyCh - 18.08.2013, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)