NPC not drive! he only stands!
#1

my NPC bot not drive in the server!
this is the PWN code:
pawn Code:
#define FILTERSCRIPT

#include <a_samp>
#include <a_npc>

//npc Vehicle
new npctaxi;

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Taxi Bot filterscript for Breakpaper");
    print("--------------------------------------\n");
   
    ConnectNPC("[BOT]taxi","Taxibot");
  npctaxi = CreateVehicle(420, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else
#endif


public OnPlayerConnect(playerid)
{
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}

public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
    if(!strcmp(npcname, "[BOT]taxi", true)) //Checking if the NPC's name is MyFirstNPC
    {
      PutPlayerInVehicle(playerid, npctaxi, 0); //Putting the NPC into the vehicle we created for it.
    }
    return 1;
  }
    return 1;
}
Reply


Messages In This Thread
NPC not drive! he only stands! - by breakpaper - 27.10.2009, 18:15
Re: NPC not connect in server - by breakpaper - 27.10.2009, 18:54
Re: NPC not connect in server - by MadeMan - 27.10.2009, 18:55
Re: NPC not connect in server - by breakpaper - 27.10.2009, 19:01
Re: NPC not connect in server - by MadeMan - 27.10.2009, 19:06
Re: NPC not connect in server - by breakpaper - 27.10.2009, 19:08
Re: NPC not connect in server - by MadeMan - 27.10.2009, 19:15
Re: NPC not connect in server - by breakpaper - 27.10.2009, 19:16
Re: NPC not drive! he only stands! - by thuron - 27.10.2009, 19:27
Re: NPC not drive! he only stands! - by Sfinx_17 - 28.10.2009, 01:13
Re: NPC not drive! he only stands! - by breakpaper - 28.10.2009, 07:03
Re: NPC not drive! he only stands! - by breakpaper - 28.10.2009, 08:37
Re: NPC not drive! he only stands! - by Sfinx_17 - 28.10.2009, 10:44
Re: NPC not drive! he only stands! - by Synkro93 - 28.10.2009, 11:01
Re: NPC not drive! he only stands! - by DreeM1 - 28.10.2009, 11:51

Forum Jump:


Users browsing this thread: 2 Guest(s)