31.03.2016, 17:04
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.
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.
Код:
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); } }
[EDIT]: I'm a retard. I fixed the issue. No need for help.