[Ajuda] NPC nao conecta
#2

Quote:
Originally Posted by TheKoDaK
Посмотреть сообщение
Bom galera eu criei um npc pro meu server mais pois ele nao quer conectar.

eu nao sei se eu fiz algo de errado olhe so os codigos:

pawn Код:
#define RECORDING "teste"
#define RECORDING_TYPE 1

#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 Код:
public OnGameModeInit()
{
    ConnectNPC("teste", "teste");
    return 1;
}
pawn Код:
public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid)) PutPlayerInVehicle(playerid, vehiclebot, 0);
    return 1;
}
sera que voces poderiam me ajudar ?
Tente assim:

pawn Код:
public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid)) SpawnPlayer(playerid);
    return 1;
}
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid)) PutPlayerInVehicle(playerid, vehiclebot, 0);
    return 1;
}
Reply


Messages In This Thread
NPC nao conecta - by TheKoDaK - 06.07.2013, 18:11
Re: NPC nao conecta - by [THs]ShadoW - 06.07.2013, 18:24
Re: NPC nao conecta - by TheKoDaK - 06.07.2013, 18:26
Re: NPC nao conecta - by [THs]ShadoW - 06.07.2013, 18:33
Re: NPC nao conecta - by TheKoDaK - 06.07.2013, 18:33
Re: NPC nao conecta - by [THs]ShadoW - 06.07.2013, 18:41
Re: NPC nao conecta - by TheKoDaK - 06.07.2013, 18:43
Re: NPC nao conecta - by [THs]ShadoW - 06.07.2013, 18:47
Re: NPC nao conecta - by FelipeAMC - 06.07.2013, 19:30
Re: NPC nao conecta - by TheKoDaK - 07.07.2013, 00:58

Forum Jump:


Users browsing this thread: 1 Guest(s)