16.04.2012, 17:36
These functions replace the modified texture of an object ( Set(Player)ObjectMaterial ) with the original one.
To use this code, you need 0.3e RC6 or higher.
Код:
stock ResetObjectMaterial(objectid, materialindex)
{
SetObjectMaterial(objectid, materialindex, 19341, "invalid", "invalid", 0);
}
stock ResetPlayerObjectMaterial(playerid, objectid, materialindex)
{
SetPlayerObjectMaterial(playerid, objectid, materialindex, 19341, "invalid", "invalid", 0);
}

