Quote:
Originally Posted by -Rebel Son-
Yeah NPCS are difficult to learn.
first, is your NPC on foot? or in a vehicle?
If on foot. Heres my "mynpc.pwn"
pawn Код:
#define RECORDING "mynpc" //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
And in your mode.
Under ModeInIt
pawn Код:
ConnectNPC("MyFirstNPC","mynpc");
And under Request class, spawn, and such.
pawn Код:
if(IsPlayerNPC(playerid)) return 1;
|
I shall try now :P Thanks