13.09.2009, 01:46
pawn Код:
ConnectNPC("NPCNAME","NPCMODENAME");
pawn Код:
#define npc1name "Paul_Ference"
pawn Код:
if(!IsPlayerNPC(playerid)) return 0; // We only deal with NPC players in this script
new playername[64];
GetPlayerName(playerid,playername,64);
if(!strcmp(playername,"NPCNAME",true)) {
PutPlayerInVehicle(playerid, npc1car, 0);
SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 ); //random position doesnt matter
}
pawn Код:
SendCommand("/ooc Hello everyone! I'm a bot! Have fun :P");
cut your npcmode down all that stuff is useless
pawn Код:
#define RECORDING "RECORDINGNAME" //WITHOUT EXTENSION
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.
#include <a_npc>
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();