Problema con NPC [SAMP 0.3d-R2]
#1

Hola gente, weno asн de fбcil, no me conecta el npc y no se por que.
Puse maxnpc 1 en server.cfg, puse el .rec en npcmodes/recordings, puse el pwn y amx en npcmodes del mismo nombre, puse para spawnear en el GM, puse el include de npc, puse ConnectNPC el nombre y el nombre del archivo .rec, y no anda. Ni siquiera se conecta, no es que lo kickea, ni se conecta :S
Que debera ser?
Reply
#2

esta el samp-npc.exe en la carpeta ?
Reply
#3

Si :S
Reply
#4

es tu npc? proba buscando algun npc en el foro haber si te anda...
Reply
#5

Quote:
Originally Posted by [Nikk]
Посмотреть сообщение
es tu npc? proba buscando algun npc en el foro haber si te anda...
No, no creo, si anda perfecto el ofrecord y eso :S
Reply
#6

me dejas ver el script del npc.
Reply
#7

Posteб tu cуdigo, sino no te podemos ayudar.
Reply
#8

Si obio:

pawn Код:
// el .rec en npcmodes/recordings
// el .pwn y .amx en npcmodes:
#define RECORDING "Bot-LVPD_1"
#define RECORDING_TYPE 2

#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
pawn Код:
// En el GM:
#include <a_npc>

// OnGameModeInit:

ConnectNPC("Officer_1","Bot-LVPD_1");

// OnPlayerConnect

if(IsPlayerNPC(playerid)) SetSpawnInfo(playerid, 0, 280, 0.0, 0.0, 0.0, 31, 5000, 0, 0, 0, 0, 0); SpawnPlayer(playerid);

if(IsPlayerNPC(playerid))
    {
    new nombre[128];
    GetPlayerName(playerid, nombre, sizeof(nombre));
    if(!strcmp(nombre, "Officer_1", true))
    {
    new Text3D:TextoBot = Create3DTextLabel("[BOT]Police Officer - LVPD",0xFF0000FF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(TextoBot, playerid, 0.0, 0.0, 0.5);
    }
    ShowPlayerMarkers(0);
    }

// OnPlayerRequestClass:

if(IsPlayerNPC(playerid)) SetSpawnInfo(playerid, 0, 280, 0.0, 0.0, 0.0, 31, 5000, 0, 0, 0, 0, 0); SpawnPlayer(playerid);

    if(IsPlayerNPC(playerid))
    {
    new nombre[128];
    GetPlayerName(playerid, nombre, sizeof(nombre));
    if(!strcmp(nombre, "Officer_1", true))
    {
    new Text3D:TextoBot = Create3DTextLabel("[BOT]Police Officer - LVPD",0xFF0000FF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(TextoBot, playerid, 0.0, 0.0, 0.5);
    }
    ShowPlayerMarkers(0);
    }

// OnPlayerSpawn:

if(IsPlayerNPC(playerid)) return 1;
Y despuйs en la carpeta del server tengo el samp-npc.exe (0.3d r2 obio) y en server.cfg maxnpc 1

Aviso/Aclaro: De este mismo modo, lo tenнa en 0.3c y no tuve ningъn tipo de problema.

PD: Lo que mas me llama la atencion es que nisiquiera se conecta, o nisiquiera un incomming conection :S
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)