Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: kennedyarz on Mar 04, 2016, 04:03 PM

Title: aid is not to define colors of teams (groups )
Post by: kennedyarz on Mar 04, 2016, 04:03 PM

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.
Title: Re: aid is not to define colors of teams (groups )
Post by: Finch Real on Mar 04, 2016, 04:29 PM
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
Title: Re: aid is not to define colors of teams (groups )
Post by: Coolkid on Mar 04, 2016, 04:36 PM
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
Title: Re: aid is not to define colors of teams (groups )
Post by: DizzasTeR on Mar 04, 2016, 05:45 PM
I just created the wiki page for player.Color today. Go have a look at that function on wiki.
Title: Re: aid is not to define colors of teams (groups )
Post by: Thijn on Mar 04, 2016, 08:06 PM
Moved.
Title: Re: aid is not to define colors of teams (groups )
Post by: Finch Real on Mar 05, 2016, 07:31 AM
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
Title: Re: aid is not to define colors of teams (groups )
Post by: MacTavish on Mar 05, 2016, 04:43 PM
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
Title: Re: aid is not to define colors of teams (groups )
Post by: Luis_Labarca on Mar 08, 2016, 11:26 PM
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);
}
}
Title: Re: aid is not to define colors of teams (groups )
Post by: Finch Real on Mar 09, 2016, 02:17 AM
Please use code button for squirrel languages
Title: Re: aid is not to define colors of teams (groups )
Post by: KAKAN on Mar 09, 2016, 07:05 AM
Ahh, I copied and made 1 function days ago, here it is:
http://pastebin.com/B73tvik1
Title: Re: aid is not to define colors of teams (groups )
Post by: kennedyarz on Mar 10, 2016, 10:40 PM
none of it serves, or will not place, I need online help bone with anydesk program http://anydesk.es/escritorio-remoto