18.01.2011, 19:01
pawn Код:
new componentid;
for (new i; i < 14; i++)
{
componentid = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), i);
if (componentid != 0)
RemoveVehicleComponent(GetPlayerVehicleID(playerid), componentid);
}
It checks every component slot for a component-id.
If there is one installed, componentid will not be 0 and the component will be removed from the player's vehicle.