17.07.2012, 21:52
I messed up on that. My bad. This code should work.
pawn Код:
CMD:destroyvehicleobjects(playerid, params[])
{
DestroyDynamicObject(GetPVarInt(playerid, "danodano1"));
DestroyDynamicObject(GetPVarInt(playerid, "danodano"));
DestroyDynamicObject(GetPVarInt(playerid, "neon"));
DestroyDynamicObject(GetPVarInt(playerid, "neon1"));
DestroyDynamicObject(GetPVarInt(playerid, "neon2"));
DestroyDynamicObject(GetPVarInt(playerid, "neon3"));
DestroyDynamicObject(GetPVarInt(playerid, "neon4"));
DestroyDynamicObject(GetPVarInt(playerid, "neon5"));
DestroyDynamicObject(GetPVarInt(playerid, "neon6"));
DestroyDynamicObject(GetPVarInt(playerid, "neon7"));
DestroyDynamicObject(GetPVarInt(playerid, "neon8"));
DestroyDynamicObject(GetPVarInt(playerid, "neon9"));
DestroyDynamicObject(GetPVarInt(playerid, "neon10"));
DestroyDynamicObject(GetPVarInt(playerid, "neon11"));
DestroyDynamicObject(GetPVarInt(playerid, "neon12"));
DestroyDynamicObject(GetPVarInt(playerid, "neon13"));
DestroyDynamicObject(GetPVarInt(playerid, "interior1"));
DestroyDynamicObject(GetPVarInt(playerid, "interior2"));
DestroyDynamicObject(GetPVarInt(playerid, "back"));
DestroyDynamicObject(GetPVarInt(playerid, "back2"));
DestroyDynamicObject(GetPVarInt(playerid, "front"));
DestroyDynamicObject(GetPVarInt(playerid, "front2"));
DestroyDynamicObject(GetPVarInt(playerid, "undercover"));
DestroyDynamicObject(GetPVarInt(playerid, "undercover1"));
}