10.06.2012, 18:35
A little tutorial that would help you:
1. Create a npc file. (( Should be the easiest ))
2. Open "npcmodes" folder from your server directory.
3. As you are not that good with dealing with NPCs, make a copy of "onfoot_test.pwn" file and open the copy.
4. All you will have to edit is this line:
Make the new with this format
5. Now go to your gamemode or filter script and just add this line under the init callback:
6. Compile.
7. Make sure you have "samp-npc.exe" file in the server directory.
8. Make sure the line of "maxnpc" has a value more than 0 in the configuration file.
9. Launch the server.
Hopes that work.
1. Create a npc file. (( Should be the easiest ))
2. Open "npcmodes" folder from your server directory.
3. As you are not that good with dealing with NPCs, make a copy of "onfoot_test.pwn" file and open the copy.
4. All you will have to edit is this line:
pawn Код:
StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,"aimtest");
pawn Код:
StartRecordingPlayback(Type, on foot or in vehicle,"npc record file name");
pawn Код:
ConnectNPC("NPC Name you want in game","npc record file");
7. Make sure you have "samp-npc.exe" file in the server directory.
8. Make sure the line of "maxnpc" has a value more than 0 in the configuration file.
9. Launch the server.
Hopes that work.