detecting nos
#1

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
Reply
#2

I suggest you take a look here: https://sampwiki.blast.hk/wiki/GetVehicleComponentType
And here: https://sampwiki.blast.hk/wiki/GetVehicleComponentInSlot
Reply
#3

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)