SA-MP Forums Archive
modified car - 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: modified car (/showthread.php?tid=527191)



remove tuning - pors - 21.07.2014

full all remove

I want to make removetuning command
[/SIZE]


Re: modified car - pors - 21.07.2014

please help


Re: modified car - Virtual1ty - 21.07.2014

Simply use RemoveVehicleComponent. The Wiki is your friend, use it!


Re: modified car - pors - 21.07.2014

Quote:
Originally Posted by Virtual1ty
Посмотреть сообщение
How do "/removetuning" command


Re: modified car - nmader - 21.07.2014

Quote:
Originally Posted by pors
Посмотреть сообщение
How do "/removetuning" command
Simply put it in a command, I assume at your level you're probably using the default strcmp (or ZCMD), search ":help" or "/help" in your script (via CTRL+F)


Re: modified car - pors - 21.07.2014

Quote:
Originally Posted by nmader
Посмотреть сообщение
Simply put it in a command, I assume at your level you're probably using the default strcmp (or ZCMD), search ":help" or "/help" in your script (via CTRL+F)
could not find it


Re: modified car - Konstantinos - 21.07.2014

pawn Код:
new
    vehicleid = GetPlayerVehicleID(playerid);

for (new slot; slot != 14; ++slot)
{
    RemoveVehicleComponent(vehicleid, GetVehicleComponentInSlot(vehicleid, slot));
}



Re: modified car - ikkentim - 21.07.2014

Mind you write in a less annoying font?

You need to set the paintjob too
https://sampwiki.blast.hk/wiki/ChangeVehiclePaintjob
"paintjobid: The ID of the Paintjob to apply. Use 3 to remove a paintjob."


Re: modified car - pors - 21.07.2014

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
pawn Код:
new
    vehicleid = GetPlayerVehicleID(playerid);

for (new slot; slot != 14; ++slot)
{
    RemoveVehicleComponent(vehicleid, GetVehicleComponentInSlot(vehicleid, slot));
}
- thank you very much
- paint jobs does not remove
- How to remove paint jobs


Re: modified car - nmader - 21.07.2014

https://sampwiki.blast.hk/wiki/ChangeVehiclePaintjob

The value 3 will remove the vehicle's paintjob.