18.08.2013, 14:05
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:
Now to know what to put on name[] and script[], here's an explanation of each: (SA-MP Wiki's)
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.
After looking at the SA-MP Wiki, you can see the following format:
pawn Код:
ConnectNPC(name[], script[])
Код:
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).
Note: Make sure you place the ConnectNPC under OnGameModeInIt else it will NOT work.