NPC leaves the vehicle bug [HELP!] [VIDEO]
#1

Hi,i just created my first NPC,everything is ok but when the NPC drives the vehicle,it gets out for like 2 seconds.

Watch the video pl0x!

Maybe it isnt converted yet,please wait :P
http://www.*****.com/7900632


Here is my script:

Код:
#include <a_samp>

new SheriffVehicle;

public OnFilterScriptInit()
{
  print("npc_test_2");
  ConnectNPC("Sheriff","bot");
  SheriffVehicle = CreateVehicle(598, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
	return 1;
}

public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid)) 
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); 
    if(!strcmp(npcname, "Sheriff", true))
    {
      PutPlayerInVehicle(playerid, SheriffVehicle, 0);
    }
    return 1;
  }

  return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
	if(!IsPlayerNPC(playerid)) return 0; // We only deal with NPC players in this script
  SetSpawnInfo(playerid,69,255,1462.0745,2630.8787,10.8203,0.0,-1,-1,-1,-1,-1,-1);
  return 1;
}
Help me pl0x!TYVM!!!
Reply
#2

That looks asif it's got problems with the recording of it.

Try recording another NPC, set one up with a different route then try it..
Reply
#3

Ok ty ill try
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)