Bot failed. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Bot failed. (
/showthread.php?tid=101359)
Bot failed. -
Justsmile - 10.10.2009
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?
Re: Bot failed. -
godknightx - 10.10.2009
Not need return 1, only if(IsPlayerNPC(playerid)) gPlayerLogged[playerid] = 1;
I use GF too, and it works fine
Re: Bot failed. -
Justsmile - 10.10.2009
under OnPlayerConnect, right?
Re: Bot failed. -
V1ceC1ty - 10.10.2009
yes
Re: Bot failed. -
Justsmile - 10.10.2009
I done it, under OnPlayerSpawn IsPlayerNPC(playerid)) return 1;
and SetPlayerSpawn
OnPlayerRequestClass
He is just freezed in the heaven
Re: Bot failed. -
V1ceC1ty - 10.10.2009
make sure the .rec files are in /npcmodes/recordings/
Re: Bot failed. -
Justsmile - 10.10.2009
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
Re: Bot failed. -
V1ceC1ty - 10.10.2009
you
cannot have a_npc with a_samp and i dont think you can make a gamemode without a_samp.
Re: Bot failed. -
Justsmile - 10.10.2009
I dont get , whatyou are trying to say. Please xplain once more.
Re: Bot failed. -
V1ceC1ty - 10.10.2009
a_npc should only be used in npcmodes not filterscripts or gamemodes