How to make these different colours
#4

Quote:
Originally Posted by Edward156
Посмотреть сообщение
They are objects. You cannot change the color of them.
Umm, there is another way of doing that:-

pawn Код:
SetObjectMaterial( objectid, materialindex, modelid, txdname[], texturename[], materialcolor );
You can use this function to replace the texture of an object with the texture from another model in the game. Important Note: You MUST use ARGB color format, not RGBA like used in client messages etc.

https://sampwiki.blast.hk/wiki/SetObjectMaterial

or you can do this for individual players.

pawn Код:
SetPlayerObjectMaterial( playerid, objectid, materialindex, modelid, txdname[], texturename[], materialcolor );
https://sampwiki.blast.hk/wiki/SetPlayerObjectMaterial

Hope this helps
FalconX
Reply


Messages In This Thread
How to make these different colours - by sanplayer - 05.06.2012, 14:46
Re: How to make these different colours - by Edward156 - 05.06.2012, 14:54
Re: How to make these different colours - by sanplayer - 05.06.2012, 14:54
Re: How to make these different colours - by FalconX - 05.06.2012, 15:08
Re: How to make these different colours - by sanplayer - 05.06.2012, 15:20
Re: How to make these different colours - by sanplayer - 05.06.2012, 15:55

Forum Jump:


Users browsing this thread: 1 Guest(s)