detecting 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: detecting nos (
/showthread.php?tid=510024)
detecting nos -
iBots - 29.04.2014
Hey,i am making a system for nos,if i enter a car and the car has nitro and i dont use the nitro it shows me a textdraw : "You dont use nos"
and if i click on fire button it changes to "You use nitro"
How can i detect when player enter a car if the car got nos ?
+rep
Re: detecting nos -
EpicDutchie - 29.04.2014
I suggest you take a look here:
https://sampwiki.blast.hk/wiki/GetVehicleComponentType
And here:
https://sampwiki.blast.hk/wiki/GetVehicleComponentInSlot
Re: detecting nos -
iBots - 30.04.2014
i have used this:
pawn Код:
if(GetVehicleComponentInSlot(GetPlayerVehicleID(playerid),GetVehicleComponentType(1010)) == 1010 && GetVehicleComponentInSlot(GetPlayerVehicleID(playerid),GetVehicleComponentType(1009)) == 1009 && GetVehicleComponentInSlot(GetPlayerVehicleID(playerid),GetVehicleComponentType(1008)) == 1008)
{
//code...
but even if i enter a car it doesnt do anything,how to let it work?