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
Simple... Anyways you are newbie, keep It up!
Thanks
Why not use GetSkinName?
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.
yeah I am using Custom Names Next time i will try to release a good snippet
This one is also a good snippet for newbies
Thanks Kakan
:), You are always welcome my friend!
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