Deleting all components from a car
#3

Quote:
Originally Posted by Vince
View Post
pawn Code:
new x, y, z, id, model;

id = GetPlayerVehicleID(playerid);

GetVehiclePos(id, x, y, z);
model = GetVehicleModel(id);
DestroyVehicle(id);
CreateVehicle(model, x, y, z);
Before you start copy-pasting: This will NOT work. It's just to give you an idea.
And what about color? :/
Quote:

new Slot[14];
for(new i=0;i<=13;i++){ Slot[i]=GetVehicleComponentInSlot(vehicleid,i); RemoveVehicleComponent(vehicleid,Slot[i]); }

Something like that i think.
Reply


Messages In This Thread
Deleting all components from a car - by thimo - 05.04.2011, 14:27
Re: Deleting all components from a car - by Vince - 05.04.2011, 14:49
Re: Deleting all components from a car - by Mmartin - 05.04.2011, 14:55
Re: Deleting all components from a car - by Alby Fire - 05.04.2011, 14:58
Re: Deleting all components from a car - by thimo - 06.04.2011, 05:56

Forum Jump:


Users browsing this thread: 2 Guest(s)