N1trO
23/04/2010, 05:12 PM
IST Color Handler
Color up your script!
IST Color Handler is a library created by me (IST N1trO) for the world SA:MP community.
this library belongs to IST (Israel SA:MP Team) (http://forum.sa-mp.com/index.php?topic=144495.0) and ISTPE Only!
- Info
version - 0.0.1
author - N1trO (omer horev).
last update - none.
team - IST (Israel SA:MP Team) (http://forum.sa-mp.com/index.php?topic=144495.0).
- What does it do?
Converts RGB Format to HEX
Changes a color in the source color (like only changing the R in the color or the B or the G...)
Gets a color in the source color (like getting the R in the color or the B or the G...)
- Functions
CreateColor(R,G,B); // returns a color from the R,G and B
/*Example:*/ SendClientMessage(playerid,CreateColor(255,0,0),"Red!");
SetColor(var,val,color) // changes the color value in the var
/*Example:*/ SendClientMessage(playerid,SetColor(COLOR_RED,255, COLOR_B),"Puerple!");
GetColor(var,val,color) // gets the color value in the var
/*Example:*/ printf("R: %d | G: %d | B: %d",GetColor(COLOR_RED,COLOR_R),GetColor(COLOR_RED,CO LOR_G),GetColor(COLOR_RED,COLOR_B));
- Donwload
Version 0.0.1
Solidfiles - http://solidfiles.com/d/BIsw
Mediafire - http://www.mediafire.com/?mnmmzztkjmn
Pastebin - http://pastebin.com/CrwyHHp5
please email me about any bug discovered (my email: 1rockout1@gmail.com).
Greets,
N1trO.
Color up your script!
IST Color Handler is a library created by me (IST N1trO) for the world SA:MP community.
this library belongs to IST (Israel SA:MP Team) (http://forum.sa-mp.com/index.php?topic=144495.0) and ISTPE Only!
- Info
version - 0.0.1
author - N1trO (omer horev).
last update - none.
team - IST (Israel SA:MP Team) (http://forum.sa-mp.com/index.php?topic=144495.0).
- What does it do?
Converts RGB Format to HEX
Changes a color in the source color (like only changing the R in the color or the B or the G...)
Gets a color in the source color (like getting the R in the color or the B or the G...)
- Functions
CreateColor(R,G,B); // returns a color from the R,G and B
/*Example:*/ SendClientMessage(playerid,CreateColor(255,0,0),"Red!");
SetColor(var,val,color) // changes the color value in the var
/*Example:*/ SendClientMessage(playerid,SetColor(COLOR_RED,255, COLOR_B),"Puerple!");
GetColor(var,val,color) // gets the color value in the var
/*Example:*/ printf("R: %d | G: %d | B: %d",GetColor(COLOR_RED,COLOR_R),GetColor(COLOR_RED,CO LOR_G),GetColor(COLOR_RED,COLOR_B));
- Donwload
Version 0.0.1
Solidfiles - http://solidfiles.com/d/BIsw
Mediafire - http://www.mediafire.com/?mnmmzztkjmn
Pastebin - http://pastebin.com/CrwyHHp5
please email me about any bug discovered (my email: 1rockout1@gmail.com).
Greets,
N1trO.