[Ajuda] Logando NPC
#1

Bem Galera ja fiz aki de tudo mas o NPC nгo loga, aki o tuto que peguei e fiz tudo correto, mas, nao deu.
Bem meu .rec й Bus, ja coloquei no server.cfg maxnpc 1, ja ta no OnplayerConnect do GM isso if(IsPlayerNPC(playerid)) return 1;
E infelizmente nao deu =/
Tuto = http://sampznx.blogspot.com.br/2012/...er-um-npc.html

NpcMode

pawn Код:
#define RECORDING "Bus" //Este й o nome do seu arquivo de gravaзгo, sem a extenзгo(.rec).
#define RECORDING_TYPE 1 //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
@Edit
FS

pawn Код:
#include <a_samp>
#define COLOR_GREEN 0x33AA33AA

new Busao;


public OnGameModeInit()
{

ConnectNPC("Bus_1","Bus");

Busao = AddStaticVehicle(437,-1988.0057,116.6116,27.6411,0.6686,75,59);

print("  Npc Bus Pack Loaded!");
return 1;
}

public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
      new npcname[MAX_PLAYER_NAME];
      GetPlayerName(playerid, npcname, sizeof(npcname));
      if(!strcmp(npcname, "Bus_1", true))
      {
        PutPlayerInVehicle(playerid, Busao, 0);
      }
      return 1;
    }
    return 1;
}
Bem ta tudo ai fiz como estб no tuto mas infelizmente ele nгo loga e ja procurei por todos os topics aki atй na area Inglesa, mas infelizmente nao consegui.

Help por Favor.
Reply


Messages In This Thread
Logando NPC - by _LorD_ - 18.08.2012, 23:42
Re: Logando NPC - by DartakousLien - 18.08.2012, 23:49
Re: Logando NPC - by FeelLikeASir_ - 18.08.2012, 23:50
Re: Logando NPC - by _LorD_ - 19.08.2012, 01:57
Re: Logando NPC - by _LorD_ - 19.08.2012, 02:44
Re: Logando NPC - by DartakousLien - 19.08.2012, 16:46
Re: Logando NPC - by _LorD_ - 22.08.2012, 12:56
Re: Logando NPC - by DartakousLien - 22.08.2012, 16:56
Re: Logando NPC - by _LorD_ - 22.08.2012, 18:03
Re: Logando NPC - by _LorD_ - 22.08.2012, 18:42

Forum Jump:


Users browsing this thread: 2 Guest(s)