13.02.2012, 17:45
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
In Filed recordings
the HydraPilot.rec file,260 KB.
and,file Server Cfg:
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.
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
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
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.