aid is not to define colors of teams (groups )

Started by kennedyarz, Mar 04, 2016, 04:03 PM

Previous topic - Next topic

kennedyarz


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.

Finch Real

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
My Snipet Showroom

http://pastebin.com/5KKuU5cg

Coolkid

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

DizzasTeR

I just created the wiki page for player.Color today. Go have a look at that function on wiki.

Thijn


Finch Real

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
My Snipet Showroom

http://pastebin.com/5KKuU5cg

MacTavish

#6
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 i guess someone have to add the RGB Codes in wiki too

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Luis_Labarca

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);
}
}

Finch Real

Please use code button for squirrel languages
My Snipet Showroom

http://pastebin.com/5KKuU5cg

KAKAN

#9
Ahh, I copied and made 1 function days ago, here it is:
http://pastebin.com/B73tvik1
oh no

kennedyarz

#10
none of it serves, or will not place, I need online help bone with anydesk program http://anydesk.es/escritorio-remoto