NPC leaves the vehicle bug [HELP!] [VIDEO] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NPC leaves the vehicle bug [HELP!] [VIDEO] (
/showthread.php?tid=111258)
NPC leaves the vehicle bug [HELP!] [VIDEO] -
Youtube - 30.11.2009
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!!!
Re: NPC leaves the vehicle bug [HELP!] [VIDEO] -
acade - 30.11.2009
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..
Re: NPC leaves the vehicle bug [HELP!] [VIDEO] -
Youtube - 30.11.2009
Ok ty ill try