[Ajuda]NPC Connect
#1

Entгo Hoje Vim Mecher com um NPC Simples, Mais Tipo Ele Nгo Conecta Que Bosta x.x

o Arquivo npcmodes/recordings estб certo eu sу filmei ele parado, й parei, o nome dele й "SpawnCivil".
й o .pwn й .amx do arquivo npcmodes Estб Lб, o Nome dele й "BotJFS", Veja o Code.
pawn Код:
#include <a_npc>
#define RECORDING "SpawnCivil"
#define RECORDING_TYPE 2
main(){}
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
й o Meu FilterScript Que Faz Ele Conect, Veja meu FilterScript
pawn Код:
#include <a_samp>
public OnFilterScriptInit()
{
    ConnectNPC("BotJFS","SpawnCivil");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

public OnPlayerSpawn(playerid)
{
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(IsPlayerNPC(playerid))
    {
        if(!strcmp(npcname, "BotJFS", true))
        {
            ApplyAnimation(playerid,"DANCING","bd_clap",4.1,0,1,1,1,1);
            SetPlayerSkin(playerid, 246);
        }
    }
    return 1;
}
Poderiam me Dizer porque ele nгo Aparece ? x.x

tipo eu queria um NPC Parada Danзando com Skin 246 x.x
Reply
#2

@up < Ainda nгo consegui D: help-me

@quase 24horas de topic й nada x.x
Reply
#3

Amigo ja fiz NPCs nгo sei ajudar seu problema eu fiz vendo este topico
Reply
#4

Mais Ai Explica Tudo o que eu jб sei... Quero criar um que fique parado danзando...

esse ai so explica como grava... o resto ele faz um BOT Vehicle, que nгo tem nada a ver com meu D:
Reply
#5

Jonathan seu GM deve estбr forзando o NPC a logar ou algo parecido tenta usar isso

[QUOTE]
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) //teste bot
{
return 1;
}
[QUOTE]
Nгo tenho certeza espero ter ajudado
Reply
#6

Sгo 48 horas.
Reply
#7

pawn Код:
if(IsPlayerNPC(playerid)) return 1;
Tenta.
Reply
#8

Nгo Funfou, Ele Carrega й Tudo, mais n aparece D: nem funciona:
pawn Код:
if(IsPlayerNPC(playerid))
{
     if(!strcmp(npcname, "BotJFS", true))
     {
         ApplyAnimation(playerid,"DANCING","bd_clap",4.1,0,1,1,1,1);
         SetPlayerSkin(playerid, 246);
     }
}
Reply
#9

"Spawne" ele no OnPlayerRequestClasss.
Reply
#10

Estou Fazendo uns Ajustes se nгo der faзo isso
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)