SA-MP Forums Archive
NPC Nos. - 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)
+--- Thread: NPC Nos. (/showthread.php?tid=604095)



NPC Nos. - Th3UnKnOwN - 31.03.2016

Here's the issue I am having. I created an NPC that basically just drives around. He does use nos though. Infact his entire route. I was holding LMB when recording it. Here's the code.

Код:
new vehid;
vehid = GetPlayerVehicleID(playerid);
if(IsPlayerNPC(playerid)) return 1;
if(IsPlayerInAnyVehicle(playerid))
{
	if(HOLDING(KEY_FIRE))
	{
		AddVehicleComponent(vehid, 1010);
	}
	else if(RELEASED(KEY_FIRE))
	{
		RemoveVehicleComponent(vehid, 1010);
	}
}
I was wondering. If I were to comment out, or remove If(IsPlayerNPC(playerid)) return 1; if that would make it so when the bot begins holding LMB it will show the nitro, cause as of right now. It just shows him accelerating much faster then he should be without nitro.


[EDIT]: I'm a retard. I fixed the issue. No need for help.