I need help to help me to define the color of each group or team , ose for each team to have a different color on the radar.
This is not Right Section for Help in Scripting
You must need to post in Squirrel Scripting Board
You need to add different RGB Colors For That
OFF:RIP English
Instead of spamming here finch real why don't u tell him how to do it I will tell you later I am on my mobile now
I just created the wiki page for player.Color today. Go have a look at that function on wiki.
Moved.
Quote from: Coolkid on Mar 04, 2016, 04:36 PMInstead of spamming here finch real why don't u tell him how to do it I will tell you later I am on my mobile now
Don't You have Eyes?
Quote from: Finch Real on Mar 04, 2016, 04:29 PMYou need to add different RGB Colors For That
http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/cRGB
Well its depend on you how you are creating Classes ( teams ) in game. if you are doing it through AddClass then you should have to look this page http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/AddClass. BTW it is the easiest way i guess to add colored teams without trouble
RGB Color codes (http://www.rapidtables.com/web/color/RGB_Color.htm) i guess someone have to add the RGB Codes in wiki too
hello friend I hope you help
function onPlayerRequestClass( player, classID, team, skin )
{
player.Colour=ColourTeamRGB(player.Team);
return 1;
}
function onPlayerSpawn( player )
{
player.Colour=ColourTeamRGB(player.Team);
}
function ColourTeamRGB(TeamID)
{
switch (TeamID)
{
///adds colors here friend
case 255: return RGB(255,255,255);
case 1: return RGB(255,255,255);
case 2: return RGB(0,255,255);
case 3: return RGB(255,105,180);
case 4: return RGB(0,128,0);
case 5: return RGB(255,255,0);
case 6: return RGB(128,0,128);
case 7: return RGB(175,238,238);
case 8: return RGB(0,0,255);
default: return RGB(255,255,255);
}
}
Please use code button for squirrel languages
Ahh, I copied and made 1 function days ago, here it is:
http://pastebin.com/B73tvik1
none of it serves, or will not place, I need online help bone with anydesk program http://anydesk.es/escritorio-remoto