Classes with RGB

Started by BrYaN_FuRy, Jul 27, 2015, 05:25 PM

Previous topic - Next topic

BrYaN_FuRy

Hi All I am new in vcmp and also newbie I made some skins with the requestclass and rgb


Add this onScriptLoad()

function onScriptLoad(){
    AddClass( 1, RGB( 75, 215, 241 ) ,0, Vector( -378.79, -537.962, 17.2832 ), 140.020, 22, 999 ,17, 100, 21, 245 );
    AddClass( 1, RGB( 140,250,300 ) ,11, Vector( -378.79, -537.962, 17.2832 ), 140.020, 25, 999 ,18, 999, 19, 999 );
    AddClass( 1, RGB( 91, 21, 255 ) ,15, Vector( -378.79, -537.962, 17.2832 ), 140.020, 22, 999 ,17, 100, 21, 245 );
    AddClass( 2, RGB( 221, 81, 9 ) ,83, Vector( -378.79, -537.962, 17.2832 ), 140.020, 22, 999 ,17, 100, 21, 245 );
    AddClass( 2, RGB( 255, 51, 153 ) ,84, Vector( -378.79, -537.962, 17.2832 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 3, RGB( 241, 25, 123 ) ,122, Vector( -398.79, -517.962, 17.2832 ), 140.020, 20, 999 ,19, 100, 21, 245 );
AddClass( 4, RGB( 245, 56, 243 ) ,51, Vector( -398.79, -517.962, 17.2832 ), 140.020, 20, 999 ,19, 100, 21, 245 );
}

Now on RequestClass



function onPlayerRequestClass( player, classID, team, skin )
{
switch( skin )
    {
    case 0:
    {

Announce( "Tommy Vercetti", player, 6 );
    }
    break;
    case 11:
    {

Announce( "Civilian", player, 6 );
    }
    break;
    case 15:
    {

Announce( "DrugDealer", player, 6 );
    }
    break;
    case 51:
    {

Announce( "Punk", player, 6 );
    }
    break;
    case 122:
    {

Announce( "Robot", player, 6 );
    }
    break;
    case 83:
    {

Announce( "Team Cuban", player, 6 );
    }
    break;
    case 84:
    {

Announce( "Team Cuban", player, 6 );
    }
    break;
}
}

I am just new so can make this for newbies Hope You will Like

KAKAN

Simple... Anyways you are newbie, keep It up!
oh no

BrYaN_FuRy


ℛḝξ☂

Why not use GetSkinName?
I may be a slow walker but I am always walking.

Omar

Quote from: Sentral on Jul 28, 2015, 01:59 AMWhy not use GetSkinName?
As you see in his topic, he is using custom names for some of the skins (eg. Drug Dealer). He also said that he's new.

BrYaN_FuRy

yeah I am using Custom Names Next time i will try to release a good snippet

KAKAN

This one is also a good snippet for newbies
oh no

BrYaN_FuRy


KAKAN

:), You are always welcome my friend!
oh no

kennedyarz

function onScriptLoad()
{
    AddClass( 1, RGB( 75, 215, 241 ) ,0, Vector( -378.79, -537.962, 17.2832 ), 140.020, 22, 999 ,17, 100, 21, 245 );
    AddClass( 2, RGB( 140,250,300 ) ,11, Vector( -378.79, -537.962, 17.2832 ), 140.020, 25, 999 ,18, 999, 19, 999 );
    AddClass( 3, RGB( 91, 21, 255 ) ,15, Vector( -378.79, -537.962, 17.2832 ), 140.020, 22, 999 ,17, 100, 21, 245 );
    AddClass( 4, RGB( 221, 81, 9 ) ,83, Vector( -378.79, -537.962, 17.2832 ), 140.020, 22, 999 ,17, 100, 21, 245 );
    AddClass( 5, RGB( 255, 51, 153 ) ,84, Vector( -378.79, -537.962, 17.2832 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 6, RGB( 241, 25, 123 ) ,122, Vector( -398.79, -517.962, 17.2832 ), 140.020, 20, 999 ,19, 100, 21, 245 );
AddClass( 7, RGB( 245, 56, 243 ) ,51, Vector( -398.79, -517.962, 17.2832 ), 140.020, 20, 999 ,19, 100, 21, 245 );
}

repair