Setting nitro for car
#1

How do i set nitro for a car? for example i want to set nitro x 10 everytime you get in certain vehicles
thanks
Reply
#2

Quote:
Originally Posted by Freddy Z
How do i set nitro for a car? for example i want to set nitro x 10 everytime you get in certain vehicles
thanks
I'll Give u a Clue:
pawn Код:
OnPlayerEnterVehicle(playerid, vehicleid)
{
if(vehicleid == yourcar)
 {
  AddVehicleComponent(.....)
 }
}
Reply
#3

https://sampwiki.blast.hk/wiki/AddVehicleComponent
Reply
#4

this should work

if(strcmp(cmd, "/nos", true) == 0) {
new vid = GetPlayerVehicleID(playerid);
AddVehicleComponent(vid, 1010);
SendClientMessage(playerid, RED, "You have successfully add nitrous if your are in vehicle!");
return 1;
}
Reply
#5

Quote:
Originally Posted by Elmin
this should work

if(strcmp(cmd, "/nos", true) == 0) {
new vid = GetPlayerVehicleID(playerid);
AddVehicleComponent(vid, 1010);
SendClientMessage(playerid, RED, "You have successfully add nitrous if your are in vehicle!");
return 1;
}
this will also work with other car mods if you ever want to add other ones on just get the id
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)