Bot failed.
#1

Hey,

i make a bot like the Tutorial above.
But the Bot spawned in heaven freezed.
i used:
pawn Код:
if(IsPlayerNPC(playerid)) return 1;
I'm using GF, but help me What does the NPOC request at login?
Reply
#2

Not need return 1, only if(IsPlayerNPC(playerid)) gPlayerLogged[playerid] = 1;
I use GF too, and it works fine
Reply
#3

under OnPlayerConnect, right?
Reply
#4

yes
Reply
#5

I done it, under OnPlayerSpawn IsPlayerNPC(playerid)) return 1;
and SetPlayerSpawn
OnPlayerRequestClass

He is just freezed in the heaven
Reply
#6

make sure the .rec files are in /npcmodes/recordings/
Reply
#7

In MY GM:

pawn Код:
ConnectNPC("Bike-Man","evo_npc");
my npc mode
pawn Код:
#define RECORDING "{jony}" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.

#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
Reply
#8

you cannot have a_npc with a_samp and i dont think you can make a gamemode without a_samp.
Reply
#9

I dont get , whatyou are trying to say. Please xplain once more.
Reply
#10

a_npc should only be used in npcmodes not filterscripts or gamemodes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)