[AJU]Dъvida sobre como criar NPC
#3

NPC add um personagem controlado pelo computador que, se vocк definir, pode ir dentro de um carro. Para andar a pй, faзa a gravaзгo (a pй й claro) com o filterscript npc_record, que jб vem na pasta dos filterscripts, e depois й sу definir no script do NPC a gravaзгo de tipo 2 (a pй). Tipo 1 й de carro. Pegue o cуdigo abaixo, que pode ser usado em qualquer situaзгo, e adapte ao seu caso:

pawn Код:
#define RECORDING "policialdelegacia" //Este й o nome do seu arquivo de gravaзгo, sem a extenзгo(.rec).
#define RECORDING_TYPE 2 //1 para gravaзхes em veнculo e 2 para gravaзхes apй.

#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
Reply


Messages In This Thread
[AJU]Dъvida sobre como criar NPC - by BiieL - 12.07.2010, 19:58
Re: [AJU]Dъvida sobre como criar NPC - by Ricardo_Saddler - 12.07.2010, 20:49
Re: [AJU]Dъvida sobre como criar NPC - by [BEP]AcerPilot - 12.07.2010, 20:51
Re: [AJU]Dъvida sobre como criar NPC - by frenetico - 12.07.2010, 21:42
Re: [AJU]Dъvida sobre como criar NPC - by V4mpiroDoidao - 12.07.2010, 21:43
Re: [AJU]Dъvida sobre como criar NPC - by BiieL - 12.07.2010, 22:15
Re: [AJU]Dъvida sobre como criar NPC - by V4mpiroDoidao - 12.07.2010, 22:23
Re: [AJU]Dъvida sobre como criar NPC - by BiieL - 13.07.2010, 16:23
Re: [AJU]Dъvida sobre como criar NPC - by felipex - 13.07.2010, 20:17
Re: [AJU]Dъvida sobre como criar NPC - by BiieL - 13.07.2010, 22:50

Forum Jump:


Users browsing this thread: 1 Guest(s)