NPC doesn't connect to server? WTF?
#2

pawn Код:
ConnectNPC("NPCNAME","NPCMODENAME");
should fix it

pawn Код:
#define npc1name "Paul_Ference"
take that out its useless

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
    }
use in OnPlayerSpawn

pawn Код:
SendCommand("/ooc Hello everyone! I'm a bot! Have fun :P");
unless you have a command called /ooc Hello everyone! I'm a bot! Have fun :P this is useless.

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();
Reply


Messages In This Thread
NPC doesn't connect to server? WTF? - by x-cutter - 12.09.2009, 22:56
Re: NPC doesn't connect to server? WTF? - by V1ceC1ty - 13.09.2009, 01:46
Re: NPC doesn't connect to server? WTF? - by x-cutter - 13.09.2009, 02:22
Re: NPC doesn't connect to server? WTF? - by V1ceC1ty - 13.09.2009, 02:54
Re: NPC doesn't connect to server? WTF? - by Nibblet - 13.09.2009, 09:43
Re: NPC doesn't connect to server? WTF? - by x-cutter - 13.09.2009, 11:44
Re: NPC doesn't connect to server? WTF? - by x-cutter - 13.09.2009, 12:07
Re: NPC doesn't connect to server? WTF? - by V1ceC1ty - 13.09.2009, 12:36
Re: NPC doesn't connect to server? WTF? - by x-cutter - 13.09.2009, 13:40

Forum Jump:


Users browsing this thread: 4 Guest(s)