07.04.2012, 04:45
Hey Everyone,
I was reading some topics on the forums and i got to know about the new addition to SA-MP 0.3e
Which is : SetObjectMaterial and SetPlayerObjectMaterial. So i checked the official wiki thread of this new function.
So the parameters information was as follows:
So the problem is what happens when i use this function with One Model Id to Second Model Id? It changes the texture of the both the objects or from one to second.
But what exactly does it change? What does the term "Texture" means over here? Can someone please elaborate this to me properly?
The main problem is to understand the usage of this new function added to SAMP 0.3e
Thanks
Ballu Miaa
I was reading some topics on the forums and i got to know about the new addition to SA-MP 0.3e
Which is : SetObjectMaterial and SetPlayerObjectMaterial. So i checked the official wiki thread of this new function.
So the parameters information was as follows:
pawn Код:
(objectid, materialindex, modelid, txdname[], texturename[], materialcolor)
objectid The ID of the object to change the texture of
materialindex The material index on the object to change
modelid The modelid on which the replacement texture is located (use 0 for alpha)
txdname The name of the txd file which contains the replacement texture (use "none" for alpha)
texturename The name of the texture to use as the replacement (use "none" for alpha)
materialcolor The object color to set, as an integer or hex in ABGR color format. Using 0 keeps the existing material color.
Returns This function doesn't return a specific value
So the problem is what happens when i use this function with One Model Id to Second Model Id? It changes the texture of the both the objects or from one to second.
But what exactly does it change? What does the term "Texture" means over here? Can someone please elaborate this to me properly?
The main problem is to understand the usage of this new function added to SAMP 0.3e
Thanks
Ballu Miaa