Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - BrYaN_FuRy
1
Snippet Showroom / Vehicle Count
« on August 4th, 2015, 10:09 AM »
Hello all friends/enemies my friend was talking about vehicle count and i am here with that system this system allowed to buy cars at limit its easy one just add this
Code: [Select]
- code removed until it's been tested and actually works -
2
Off-Topic General / Trip to Murree ;)
« on August 1st, 2015, 09:14 PM »
Hello fella i was on journey to murree so was offline and i am now in murree very rainy i will miss my scripting + my friends see ya
3
Scripting and Server Management / 2 modes
« on August 1st, 2015, 08:48 AM »
i am using seby custom menu but when ever i add this on requestclass it send one error

Code: [Select]
index ShowMenu does not exist

here is the code

Code: [Select]
CreateMenu("Choose World","Deathmatch","Racing", "Derby", "FreeRoam");
if( menu[0] ) menu[0].ShowMenu( player );
4
Scripting and Server Management / Echo Problem
« on July 31st, 2015, 07:43 AM »
i have done with my script i was working on echo  it show no error but does not connect my channel this is my setting


Code: [Select]
const FBS_NICK = "Fast & Furious BoT"; // The name of the echo bot
const FBS_BPASS = "lmaorolfidklolbrb"; // The NickServ password of the echo bot
const FBS_SERVER = "94.23.157.172"; // The numerical ip of the irc server - Coming Soon
const FBS_PORT = 6667; // The port for that irc server
const FBS_CHAN = "#f&f"; // The channel that you wont your echo bot to join
const FBS_CPASS = ""; // The password for that channel, if there isnt one leave it as "".{

and ActivateEcho i also add this on ScriptLoad() ActivateEcho();

Code: [Select]
function ActivateEcho()
{
print( "Confirming echo bot details..." );
FBS_BOT <- NewSocket( "FBSProcess" );

FBS_BOT.Connect( FBS_SERVER, FBS_PORT );
FBS_BOT.SetNewConnFunc( "FBSLogin" );
print( "Bot details confirmed!" );

FBS_NICKS <- array( 50, null );
}

also plugins are connected
5
Servers / Fast & Furious MultiGame Mode
« on July 31st, 2015, 07:36 AM »
Hello Folks ! I was new on vcmp i start scripting server from blank script i work everyday and today server is presented

There are 4 Worlds in the Game
1.Racing
2.DM
3.Derby
4.FreeRoam

Server Name  : Fast & Furious MultiGame Modes
Game-Mode  :  F&F V 1.0
Map  :  Vice-City
Player Slots  :  100
Forum  :  Coming Soon but will be http://f&f.tk//
IRC Channel  :  #f&f On LUNet 
Scripted by  :  Me using Fuzzie Account System Ksna Race System with modification and something more i think..

6
Snippet Showroom / Ksna Race System with CheckPoints
« on July 30th, 2015, 09:57 AM »
Hello i was working on Checkpoint race system i have complete that system This is Ksna Race System

What's New in this System: This is Ksna Race System but with Checkpoints Here it is

I am Posting Whole System

Code: [Select]
function onPlayerClass
{
raceplayer = false;
check0 = false;
check1 = false;
check2 = false;
check3 = false;
check4 = false;
check5 = false;
check6 = false;
check7 = false;
check8 = false;
check9 = false;
check10 = false;
}

Code: [Select]
function onScriptLoad()
{
CreateCheckpoint( null, 2, Vector( 10.1409, 963.899, 10.9402 ), RGB(225, 0, 255), 6);
CreateCheckpoint( null, 2, Vector( -231.318, 1079.07, 20.147 ), RGB(225, 0, 255), 6);
CreateCheckpoint( null, 2, Vector( -397.966, 1067.51, 12.9971 ), RGB(225, 0, 255), 6);
CreateCheckpoint( null, 2, Vector( -488.76, 771.059, 10.3594 ), RGB(225, 0, 255), 6);
CreateCheckpoint( null, 2, Vector( -636.525, 548.756, 10.592 ), RGB(225, 0, 255), 6);
CreateCheckpoint( null, 2, Vector( -738.273, 158.318, 10.6376 ), RGB(225, 0, 255), 6);
CreateCheckpoint( null, 2, Vector( -843.745, -289.459, 10.4258 ), RGB(225, 0, 255), 6);
CreateCheckpoint( null, 2, Vector( -825.032, -774.582, 10.4491 ), RGB(225, 0, 255), 6);
CreateCheckpoint( null, 2, Vector( -971.792, -1073.91, 14.217 ), RGB(225, 0, 255), 6);
CreateCheckpoint( null, 2, Vector( -1200.94, -862.164, 14.2198 ), RGB(225, 0, 255), 6);
CreateCheckpoint( null, 2, Vector( -1247.47, -784.685, 14.217 ), RGB(225, 0, 255), 6);
race <- false;
 racecount <- 0;
 racestart <- false;
}
 
[code]function onPlayerPart( player, reason )
{
if ( pstats[ player.ID ].raceplayer ) {
 racecount--;
 Message( "[#00FFFF]>> " + player.Name + " is out of the race." );
    if ( racecount == 0 ) closerace();
 pstats[ player.ID ].raceplayer = false;
    }
}

Code: [Select]
function onPlayerDeath( player, reason )
{
if ( pstats[ player.ID ].raceplayer ) {
 racecount--;
 Message( "[#00FFFF]>> " + player.Name + " is out of the race." );
    if ( racecount == 0 ) closerace();
 pstats[ player.ID ].raceplayer = false;
    }
}

Code: [Select]
function onPlayerKill( player, killer, weapon, bodypart )
{
if ( pstats[ player.ID ].raceplayer ) {
 racecount--;
 Message( "[#00FFFF]>> " + player.Name + " is out of the race." );
    if ( racecount == 0 ) closerace();
 pstats[ player.ID ].raceplayer = false;
    }
}
Commands
Code: [Select]
if( cmd == "race") {
 if( race ) MessagePlayer("[#0033CC]Race is already started.. ",player);
 else if ( player.World == 1 ) MessagePlayer( "Error - Invalid Command",player );
else if ( player.World == 3 ) MessagePlayer( "Error - Invalid Command",player );
 else{
  race = true;
  Message("[#00FFFF]Race is started by "+ player.Name +", 30sec to join the race.");
  Message("[#0033CC]Film Studio to Airport race started.");
  NewTimer( "raceplayers", 30000, 1);
  FindVehicle( 1 ).Pos = Vector( -54.2794, 966.151, 15.9403 );
  FindVehicle( 2 ).Pos = Vector( -54.2794, 956.151, 15.9403 );
  FindVehicle( 3 ).Pos = Vector( -54.2794, 946.151, 15.9403 );
  FindVehicle( 4 ).Pos = Vector( -54.2794, 936.151, 15.9403 );
  FindVehicle( 1 ).World = 2;
  FindVehicle( 2 ).World = 2;
  FindVehicle( 3 ).World = 2;
  FindVehicle( 4 ).World = 2;
 }
 }
 else if ( cmd == "leaverace")
 {
  if ( !player.Spawned )MessagePlayer("[#FF0000]Spawn to use this command" player);
 else if ( !race ) MessagePlayer("[#FF0000]Race is not started do /race", player);
  else if ( player.World == 1 ) MessagePlayer( "Error - Invalid Command",player );
else if ( player.World == 3 ) MessagePlayer( "Error - Invalid Command",player );
 if ( !pstats[ player.ID ].raceplayer ) MessagePlayer("[#FF0000]You are not in any Race", player);
 else
 {
 racecount--;
 Message( "[#00FFFF]>> " + player.Name + " has left the race." );
    if ( racecount == 0 ) closerace();
player.World = 1;
 pstats[ player.ID ].raceplayer = false;
    }
  }
 else if( cmd == "joinrace") {
 if ( !player.Spawned )MessagePlayer("[#FF0000]Spawn to use this command" player);
 else if ( !race ) MessagePlayer("[#FF0000]Race is not started do /race", player);
 else if ( pstats[player.ID].raceplayer ) MessagePlayer("[#0033CC]You already joined race.",player);
  else if ( player.World == 1 ) MessagePlayer( "Error - Invalid Command",player );
else if ( player.World == 3 ) MessagePlayer( "Error - Invalid Command",player );
 else if ( racecount > 4 ) MessagePlayer("[#00FFFF]Too Late! Only 4 players can race at once", player);
 else if ( racestart ) MessagePlayer("[#FFF000]Too Late!", player);
 else {
  racecount++;
   for( local i=0; i <= racecount; i++ )
  {
   local plr = FindPlayer( i );
   player.Vehicle = FindVehicle( i );
   player.World = 2;
  }
  player.Frozen = true;
  pstats[player.ID].raceplayer = true;
  Message("[#FF0000]"+ player.Name +" has joined race.")
 }
 }


Code: [Select]
function raceplayers()
{
     if ( racecount > 1 )
  {
  NewTimer( "Ann", 1000, 1, "3" );
  NewTimer( "Ann", 2000, 1, "2" );
  NewTimer( "Ann", 3000, 1, "1" );
  } else closerace();
}
function Ann( number )
{
       for( local i=0; i <= GetMaxPlayers(); i++ )
  {
   local plr = FindPlayer( i );
      if ( ( plr ) && ( pstats[ plr.ID ].raceplayer ) )
                        {
      switch( number.tointeger() )
          {
       case 1:
       Announce( "1", plr );
       startrace();
       Announce( "Go!", plr );
       break;
       
       case 2:
       Announce( "2", plr );
       break;
       
       case 3:
       Announce( "3", plr );
       break;
          }
      }
  }
}
function startrace()
{
    racestart = true;
CreatePickup( 382, 2, 1, Vector( -1435.9, -790.299, 14.6437 ), 255, false );
 CreateCheckpoint( null, 2, Vector( 10.1409, 963.899, 10.9402 ), RGB(225, 0, 255), 2);
 local plr;
       for( local i=0; i <= GetMaxPlayers(); i++ )
  {
  {
      plr = FindPlayer( i );
      if ( ( plr ) && ( pstats[ plr.ID ].raceplayer ) )
                {
                    plr.IsFrozen = false;
                }
        }
 }
}

function closerace() {
    Message( "[#FF0000]Race cancelled!" );
    race = false;
 racestart = false;
    racecount = 0;
    local plr;
     for( local i=0; i <= GetMaxPlayers(); i++ ){
  {
      plr = FindPlayer( i );
      if ( plr )
            {
    if( pstats[ plr.ID ].raceplayer )
    {
                    pstats[ plr.ID ].raceplayer = false;
                    plr.IsFrozen = false;
                    plr.Pos = Vector( 496.26, -83.9443, 10.0302  );
    }
            }
        }
 }

}


CheckPoints

Code: [Select]
function onPickupPickedUp( player, pickup )
{
 if ( pickup.Model == 382 )
 {
  if ( !pstats[ player.ID ].raceplayer ) PrivMessage( player, "You are not in race");
  else if ( pstats[ player.ID ].check1 == false ) PrivMessage( player, "You need to pickup last pickup to pickup this");
else if ( pstats[ player.ID ].check2 == false ) PrivMessage( player, "You need to pickup last pickup to pickup this");
else if ( pstats[ player.ID ].check3 == false ) PrivMessage( player, "You need to pickup last pickup to pickup this");
else if ( pstats[ player.ID ].check4 == false ) PrivMessage( player, "You need to pickup last pickup to pickup this");
else if ( pstats[ player.ID ].check5 == false ) PrivMessage( player, "You need to pickup last pickup to pickup this");
else if ( pstats[ player.ID ].check6 == false ) PrivMessage( player, "You need to pickup last pickup to pickup this");
else if ( pstats[ player.ID ].check7 == false ) PrivMessage( player, "You need to pickup last pickup to pickup this");
else if ( pstats[ player.ID ].check8 == false ) PrivMessage( player, "You need to pickup last pickup to pickup this");
else if ( pstats[ player.ID ].check9 == false ) PrivMessage( player, "You need to pickup last pickup to pickup this");
else if ( pstats[ player.ID ].check10 == false ) PrivMessage( player, "You need to pickup last pickup to pickup this");
else
  {
  IncCash( player, 25000 );
   Message( " [#FF0000] " + player.Name + " has win the race and got 25000$.");
   pickup.Remove();
   closerace();
  }
  }
}


Code: [Select]
function onCheckpointEntered(player, checkpoint)
{
if ( checkpoint.ID == 0 )
{
if ( !race ) PrivMessage( player, ":P Race is not started yet" );
else if ( pstats[ player.ID ].raceplayer == false ) PrivMessage( player, "You are not in any race");
else if ( pstats[ player.ID ].check0 == true ) PrivMessage( player, "You already pickup CheckPoint ID 0");
else
{
pstats[ player.ID ].check0 = true;
PrivMessage( player, "Checkpoint 0 Pick Up Sucessfully 0/10");
}
}
if ( checkpoint.ID == 1 )
{
if ( !race ) PrivMessage( player, ":P Race is not started yet" );
else if ( pstats[ player.ID ].raceplayer == false ) PrivMessage( player, "You are not in any race");
else if ( pstats[ player.ID ].check1 == true ) PrivMessage( player, "You already pickup CheckPoint ID 1");
else if ( pstats[ player.ID ].check0 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 0");
else
{
pstats[ player.ID ].check1 = true;
PrivMessage( player, "Checkpoint 1 Pick Up Sucessfully 1/10");
}
}
if ( checkpoint.ID == 2 )
{
if ( !race ) PrivMessage( player, ":P Race is not started yet" );
else if ( pstats[ player.ID ].check2 == true ) PrivMessage( player, "You already pickup CheckPoint ID 2");
else if ( pstats[ player.ID ].check1 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 1");
else if ( pstats[ player.ID ].raceplayer == false ) PrivMessage( player, "You are not in any race");
else
{
pstats[ player.ID ].check2 = true;
PrivMessage( player, "Checkpoint 2 Pick Up Sucessfully 2/10");
}
}
if ( checkpoint.ID == 3 )
{
if ( !race ) PrivMessage( player, ":P Race is not started yet" );
else if ( pstats[ player.ID ].check3 == true ) PrivMessage( player, "You already pickup CheckPoint ID 3");
else if ( pstats[ player.ID ].check1 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 1");
else if ( pstats[ player.ID ].check2 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 2");
else if ( pstats[ player.ID ].raceplayer == false ) PrivMessage( player, "You are not in any race");
else
{
pstats[ player.ID ].check3 = true;
PrivMessage( player, "Checkpoint 3 Pick Up Sucessfully 3/10");
}
}
if ( checkpoint.ID == 4 )
{
if ( !race ) PrivMessage( player, ":P Race is not started yet" );
else if ( pstats[ player.ID ].check4 == true ) PrivMessage( player, "You already pickup CheckPoint ID 4");
else if ( pstats[ player.ID ].check1 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 1");
else if ( pstats[ player.ID ].check2 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 2");
else if ( pstats[ player.ID ].check3 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 3");
else if ( pstats[ player.ID ].raceplayer == false ) PrivMessage( player, "You are not in any race");
else
{
pstats[ player.ID ].check4 = true;
PrivMessage( player, "Checkpoint 4 Pick Up Sucessfully 4/10");
}
}
if ( checkpoint.ID == 5 )
{
if ( !race ) PrivMessage( player, ":P Race is not started yet" );
else if ( pstats[ player.ID ].check5 == true ) PrivMessage( player, "You already pickup CheckPoint ID 5");
else if ( pstats[ player.ID ].check1 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 1");
else if ( pstats[ player.ID ].check2 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 2");
else if ( pstats[ player.ID ].check3 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 3");
else if ( pstats[ player.ID ].check4 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 4");
else if ( pstats[ player.ID ].raceplayer == false ) PrivMessage( player, "You are not in any race");
else
{
pstats[ player.ID ].check5 = true;
PrivMessage( player, "Checkpoint 5 Pick Up Sucessfully 5/10");
}
}
if ( checkpoint.ID == 6 )
{
if ( !race ) PrivMessage( player, ":P Race is not started yet" );
else if ( pstats[ player.ID ].check6 == true ) PrivMessage( player, "You already pickup CheckPoint ID 6");
else if ( pstats[ player.ID ].check1 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 1");
else if ( pstats[ player.ID ].check2 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 2");
else if ( pstats[ player.ID ].check3 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 3");
else if ( pstats[ player.ID ].check4 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 4");
else if ( pstats[ player.ID ].check5 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 5");
else if ( pstats[ player.ID ].raceplayer == false ) PrivMessage( player, "You are not in any race");
else
{
pstats[ player.ID ].check6 = true;
PrivMessage( player, "Checkpoint 6 Pick Up Sucessfully 6/10");
}
}
if ( checkpoint.ID == 7 )
{
if ( !race ) PrivMessage( player, ":P Race is not started yet" );
else if ( pstats[ player.ID ].check7 == true ) PrivMessage( player, "You already pickup CheckPoint ID 7");
else if ( pstats[ player.ID ].check1 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 1");
else if ( pstats[ player.ID ].check2 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 2");
else if ( pstats[ player.ID ].check3 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 3");
else if ( pstats[ player.ID ].check4 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 4");
else if ( pstats[ player.ID ].check5 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 5");
else if ( pstats[ player.ID ].check6 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 6");
else if ( pstats[ player.ID ].raceplayer == false ) PrivMessage( player, "You are not in any race");
else
{
pstats[ player.ID ].check7 = true;
PrivMessage( player, "Checkpoint 7 Pick Up Sucessfully 7/10");
}
}
if ( checkpoint.ID == 8 )
{
if ( !race ) PrivMessage( player, ":P Race is not started yet" );
else if ( pstats[ player.ID ].check8 == true ) PrivMessage( player, "You already pickup CheckPoint ID 8");
else if ( pstats[ player.ID ].check1 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 1");
else if ( pstats[ player.ID ].check2 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 2");
else if ( pstats[ player.ID ].check3 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 3");
else if ( pstats[ player.ID ].check4 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 4");
else if ( pstats[ player.ID ].check5 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 5");
else if ( pstats[ player.ID ].check6 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 6");
else if ( pstats[ player.ID ].check7 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 7");
else if ( pstats[ player.ID ].raceplayer == false ) PrivMessage( player, "You are not in any race");
else
{
pstats[ player.ID ].check8 = true;
PrivMessage( player, "Checkpoint 8 Pick Up Sucessfully 8/10");
}
}
if ( checkpoint.ID == 9 )
{
if ( !race ) PrivMessage( player, ":P Race is not started yet" );
else if ( pstats[ player.ID ].check9 == true ) PrivMessage( player, "You already pickup CheckPoint ID 9");
else if ( pstats[ player.ID ].check1 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 1");
else if ( pstats[ player.ID ].check2 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 2");
else if ( pstats[ player.ID ].check3 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 3");
else if ( pstats[ player.ID ].check4 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 4");
else if ( pstats[ player.ID ].check5 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 5");
else if ( pstats[ player.ID ].check6 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 6");
else if ( pstats[ player.ID ].check7 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 7");
else if ( pstats[ player.ID ].check8 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 8");
else if ( pstats[ player.ID ].raceplayer == false ) PrivMessage( player, "You are not in any race");
else
{
pstats[ player.ID ].check9 = true;
PrivMessage( player, "Checkpoint 9 Pick Up Sucessfully 9/10");
}
}
if ( checkpoint.ID == 10 )
{
if ( !race ) PrivMessage( player, ":P Race is not started yet" );
else if ( pstats[ player.ID ].check10 == true ) PrivMessage( player, "You already pickup CheckPoint ID 10");
else if ( pstats[ player.ID ].check1 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 1");
else if ( pstats[ player.ID ].check2 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 2");
else if ( pstats[ player.ID ].check3 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 3");
else if ( pstats[ player.ID ].check4 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 4");
else if ( pstats[ player.ID ].check5 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 5");
else if ( pstats[ player.ID ].check6 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 6");
else if ( pstats[ player.ID ].check7 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 7");
else if ( pstats[ player.ID ].check8 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 8");
else if ( pstats[ player.ID ].check9 == false ) PrivMessage( player, "You didn't Pickup Checkpoint ID 9");
else if ( pstats[ player.ID ].raceplayer == false ) PrivMessage( player, "You are not in any race");
else
{
pstats[ player.ID ].check10 = true;
PrivMessage( player, "Checkpoint 10 Pick Up Sucessfully 10/10");
PrivMessage( player, "Now Move to Airport for Win");
}
}
}

Note: race is for world 2 and I am new so Scripting Way is not Good
Code Updated!
7
Scripting and Server Management / CheckPoints
« on July 29th, 2015, 04:50 PM »
Hi I create some checkpoints for race system with checkpoint these are working fine but ID 0,1 and 2 are not showing but id 3, 4 , 5,6 ,7 ,8 ,9 , 10 are showing
on world 2


Code: [Select]
CreateCheckpoint( null, 2, Vector( 10.1409, 963.899, 10.9402 ), RGB(225, 0, 255), 2);
 CreateCheckpoint( null, 2, Vector( 26.8129, 1079.92, 13.7339 ), RGB(225, 0, 255), 2);
 CreateCheckpoint( null, 2, Vector( -8.51788, 1092.93, 14.7526 ), RGB(225, 0, 255), 2);
 CreateCheckpoint( null, 2, Vector( -74.9408, 1057.68, 10.8522 ), RGB(225, 0, 255), 2);
 CreateCheckpoint( null, 2, Vector( -318.372, 1085.11, 22.0633 ), RGB(225, 0, 255), 2);
 CreateCheckpoint( null, 2, Vector( -397.966, 1067.51, 12.9971 ), RGB(225, 0, 255), 2);
 CreateCheckpoint( null, 2, Vector( -488.76, 771.059, 10.3594 ), RGB(225, 0, 255), 2);
CreateCheckpoint( null, 2, Vector( -738.273, 158.318, 10.6376 ), RGB(225, 0, 255), 2);
CreateCheckpoint( null, 2, Vector( -843.745, -289.459, 10.4258 ), RGB(225, 0, 255), 2);
CreateCheckpoint( null, 2, Vector( -825.032, -774.582, 10.4491 ), RGB(225, 0, 255), 2);
CreateCheckpoint( null, 2, Vector( -971.792, -1073.91, 14.217 ), RGB(225, 0, 255), 2);
8
Snippet Showroom / Classes with RGB
« on July 27th, 2015, 06:25 PM »
Hi All I am new in vcmp and also newbie I made some skins with the requestclass and rgb


Add this onScriptLoad()

Code: [Select]
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


Code: [Select]

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