Ayuda Npc :/
#1

Bueno Estoy creando unNpc conecta loguea y Todo pero resulta que No Parace en auto aca lo que hize

en la carpeta npcmode

pawn Код:
#define RECORDING "Ramon_Zanches" //Este es el nombre del archivo que grabaron in game
#define RECORDING_TYPE 1 //1 = en vehiculo 2= caminando

#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
en la gm

Ongamemodeinit
pawn Код:
ConnectNPC("Ramon_Zanches","Ramon_Zanches");
     MiPrimerNPCVeh= CreateVehicle(400, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
un un Public RequestNpcLoad

pawn Код:
if(!strcmp(npcname, "Ramon_Zanches", true)) // Ammunation SHOP
        {
        MiPrimerNPCVeh= CreateVehicle(400, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
        return 1;
        }
y en RequestNpcJoin

pawn Код:
ConnectNPC("Ramon_Zanches","Ramon_Zanches");
conecta y todo pero no aparece en auto que pasara?
Reply
#2

usa PutPlayerInVehicle
Reply
#3

Te faltу usar la funciуn para colocar al NPC dentro del vehнculo...

pawn Код:
if(!strcmp(npcname, "Ramon_Zanches", true)) // Ammunation SHOP
{
    MiPrimerNPCVeh = CreateVehicle(400, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
    PutPlayerInVehicle(playerid, MiPrimerNPCVeh, 0); // Coloquй el 0 como ъltimo parбmetro debido a que es el conductor.
    return 1;
}
PD: Me parece que el apellido es Sanchez, no Zanches.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)