SA-MP Forums Archive
bot prob please help - 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 prob please help (/showthread.php?tid=111547)



bot prob please help - Klick11 - 02.12.2009

Tutorial:

from a German Site:

[ SCRIPTING ] Samp 0.3 Bots Erstellen
http://forum.sa-mp.de/wbb/san-andrea...ots-erstellen/

so
look

Код:
	

	

#include <a_npc>

#define RECORDING "CARBOTORGINAL"
// Record typ, 1 
#define RECORDING_TYPE 1

main()
{
}

public OnRecordingPlaybackEnd()
StartRecordingPlayback(RECORDING_TYPE, RECORDING);

public OnNPCEnterVehicle(vehicleid, seatid)
StartRecordingPlayback(RECORDING_TYPE, RECORDING);

public OnNPCExitVehicle()
StopRecordingPlayback();
	

	

new CARBOTORGINAL;


public OnPlayerSpawn(playerid)
{
	new botname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, botname, sizeof(botname));
	if(IsPlayerNPC(playerid))
	if(!strcmp(botname, "CARBOTORGINAL", true))
	{
	PutPlayerInVehicle(playerid, CARBOTORGINAL, 0);
	}	Crashed[playerid] = 0;
	InitLockDoors(playerid);
	STDPlayer[playerid] = 0;
	gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
	if (gTeam[playerid] == 4) //medic / criminal reset team
	{
// OngameModeInit
	ConnectNPC("CARBOTORGINAL","CARBOTORGINAL");// 
	CARBOTORGINAL = CreateVehicle(431, 2000.0, 2000.0, 2000.0, 7.0, 0, 0, -1);//



Re: bot prob please help - Burridge - 02.12.2009

http://forum.sa-mp.com/index.php?topic=119947.0 - This link may help you.