02.12.2009, 17:08
Tutorial:
from a German Site:
[ SCRIPTING ] Samp 0.3 Bots Erstellen
http://forum.sa-mp.de/wbb/san-andrea...ots-erstellen/
so
look
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);//

