[help] bot is not joined the server..
#1

Hey, I did not convene a server bot

But the bot will not go into the server, I do not know why, is all the codes and files..

In GameMode:

public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid))return 1;
// And Codes And System Register and Login.
return 1;
}


public OnPlayerRequestClass(playerid,classid)
{
if(IsPlayerNPC(playerid))return 1;
// Next Codes In The Public Is,Camera,and Classid.
return 1;
}


public OnPlayerRequestSpawn(playerid)
{
if(IsPlayerNPC(playerid))return 1;
// Block Register and Login System,And Codes GetPlayerTeam.
return 1;
}

public OnPlayerSpawn(playerid)
{
new BotName[MAX_PLAYER_NAME];
GetPlayerName(playerid,BotName,MAX_PLAYER_NAME);
if(IsPlayerNPC(playerid))if(!strcmp(BotName,"TDM_P ilot"))SetPlayerSkin(playerid,253),PutPlayerInVehi cle(playerid,BotHydra,0);
return 1;
}

In filed npcmodes

In File HydraPilot.pwn

Код:
#define RECORDING "HydraPilot"
#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
In Filed recordings

the HydraPilot.rec file,260 KB.

and,file Server Cfg:

Код:
echo Executing Server Config...
lanmode 0
rcon_password 123
maxplayers 500
port 7777
hostname S.W.A.T ™VS™ Robbers (0.3d)
gamemode0 SWAT
filterscripts 
plugins streamer.dll
announce 0
query 1
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 1
mapname Los Santos
and i open samp-server file,and i see in cmd/server.log/in server, the bot not joined to server..

what a problem here?

please help me guys.. i need really help with the bot,and with mode LVDM it's bot also not joined to server.
Reply
#2

If you compile HydraPilot.pwn to amx
Reply
#3

sure..
Reply
#4

Код:
#include <a_samp>
#include <a_npc>

public OnFilterScriptInit()
{
	//Hydra
	ConnectNPC("NPC-Name","HydraPilot");
	return 1;
}
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
      new npcname[MAX_PLAYER_NAME];
      GetPlayerName(playerid, npcname, sizeof(npcname));
      if (!strcmp(npcname, "NPC-name", true))
      {
          SetPlayerSkin(playerid, 1); // NPC Skin ID
          return 1;
      }
      return 1;
    }
    return 1;
}
In Filterscript
Reply
#5

Not working..
Reply
#6

Please,something can help me with the bot?
Reply
#7

...?
Reply
#8

yeah,i reapir it,i have update the all files to 0.3d,and the bot has joined now to server ;]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)