22.01.2013, 03:41
first of let me help u by saying there are 13 ..... 1 -13 second u can create a variable to save modes like
next u gonna need this https://sampwiki.blast.hk/wiki/Car_Component_ID u gonna know which is for which car .... which car can use what
and oh yeah > https://sampwiki.blast.hk/wiki/Componentslots
and i currently looking for which component goes where yet the list should help u with most :/
and also
and this may help as well https://sampwiki.blast.hk/wiki/Saving_car_mods
pawn Код:
Vehicle[vehicleid][vMod][14] // 0-13
and oh yeah > https://sampwiki.blast.hk/wiki/Componentslots
and i currently looking for which component goes where yet the list should help u with most :/
and also
pawn Код:
// using as an example https://sampwiki.blast.hk/wiki/AddVehicleComponent
new gTAXI;
public OnGameModeInit()
{
gTAXI = AddStaticVehicle(420, -2482.4937, 2242.3936, 4.6225, 179.3656, 6, 1); // Taxi
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if (newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
{
if (GetPlayerVehicleID(playerid) == gTAXI)
{
AddVehicleComponent(gTAXI, 1010); // Nitro
SendClientMessage(playerid, 0xFFFFFFAA, "Nitro added to the Taxi.");
Vehicle[vehicleid][vMod1] = 1010;
}
}
return 1;
}
//my extenstion
OnVehicleSpawn // u need to put the add components on each vehicle....