12.10.2009, 19:20
Ok i've done the whole turtorial of kye, creating NPC's, and it said to solve this problem i had to look back at the onplayerspawn part, but since that isn't in my script, 'cause it's an ON FOOT NPC and not in a vehicle (so i can skip that step) still i can't figure out why my NPC doesn't do anything ingame, it joins the game and keeps standing (freezed) at the spawnplace.
Folder: server/gamemodes
I'm using the standard gamemode, that comes with 0.3 ( Bare.amx) and edited the NPC in it, here's the gamemode:
http://pastebin.com/m66c540de
Folder: server/npcmodes
My "mini" script for the NPC is called samptest1A
and here's it's code:
FOLDER: server/npcmodes/Recordings
The recording is called: samptest1
and it's file is here:
![](http://solidfiles.com/info_imgs/fSI6.jpg)
Please test if it works at your server,
and i hope anyone can help me fix it!
Folder: server/gamemodes
I'm using the standard gamemode, that comes with 0.3 ( Bare.amx) and edited the NPC in it, here's the gamemode:
http://pastebin.com/m66c540de
Folder: server/npcmodes
My "mini" script for the NPC is called samptest1A
and here's it's code:
Код:
#define RECORDING "samptest1" //This is the filename of your recording without the extension. #define RECORDING_TYPE 2 //1 for in vehicle and 2 for on foot. #include <a_npc> main(){} public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING); #if RECORDING_TYPE == 1 public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING); public OnNPCExitVehicle() StopRecordingPlayback(); #else public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING); #endif
The recording is called: samptest1
and it's file is here:
![](http://solidfiles.com/info_imgs/fSI6.jpg)
Please test if it works at your server,
and i hope anyone can help me fix it!