SA-MP Forums Archive
Deleting components - 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: Deleting components (/showthread.php?tid=554036)



Deleting components - cnoopers - 01.01.2015

Doesn't works.
Код:
public OnVehicleMod(playerid, vehicleid, componentid)
{
	for (new i; i < 14; i++)
	{
		componentid = GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), i);
  		if (componentid != 0)
   			RemoveVehicleComponent(GetPlayerVehicleID(playerid), componentid);
	}
	return 1;
}
I tested it by cmd creating nitro.