Any way to detect your position xyz?
[doubt] next stage »

Radon

  • Full Member
  • Posts: 165
Any way to detect your position xyz?
« on April 20th, 2017, 02:49 PM »
I want to put some spawns in different locations but I have no idea what software/any thing to scan my current position IG.

EK.IceFlake

  • Hero Member
  • "We are the champions my fellahs" - Sufyan/VK.SuFy
  • Posts: 1,761
Re: Any way to detect your position xyz?
« Reply #1, on April 20th, 2017, 02:53 PM »
Code: [Select]
function onPlayerCommand(player, command, parameters)
{
    if (command == "s")
    {
        MessagePlayer(player, "Your position: " + player.Pos.x + ", " + player.Pos.y + ", " + player.Pos.z + ". Your angle: " + player.Angle + " radians.");
    }
}
Then use /s to display your current position.

vito

  • Sr. Member
  • Posts: 406

kennedyarz

  • Sr. Member
  • Making American Great Again
  • Posts: 334
Re: Any way to detect your position xyz?
« Reply #3, on April 22nd, 2017, 12:20 AM »
Quote from EK.IceFlake on April 20th, 2017, 02:53 PM
Code: [Select]
function onPlayerCommand(player, command, parameters)
{
    if (command == "s")
    {
        MessagePlayer(player, "Your position: " + player.Pos.x + ", " + player.Pos.y + ", " + player.Pos.z + ". Your angle: " + player.Angle + " radians.");
    }
}
Then use /s to display your current position.
Code: [Select]
function onPlayerCommand(player, cmd, parameters)
{
    if (cmd == "s")
    {
        MessagePlayer("Your position: " + player.Pos.x + ", " + player.Pos.y + ", " + player.Pos.z + ". Your angle: " + player.Angle + " ",player);
    }
}

luchgox

  • Full Member
  • Posts: 144
Strength does not come from wining.Your struggles develop your strengths.

kennedyarz

  • Sr. Member
  • Making American Great Again
  • Posts: 334
Re: Any way to detect your position xyz?
« Reply #5, on April 23rd, 2017, 12:28 AM »
Quote from QW.jester on April 22nd, 2017, 01:22 PM
thanks @kennedyarz i also need this for setting the classes positions
use this :V
Code: [Select]
function OnScriptLoad()
{
//============================ Team 1 =========================================================
AddClass( 1, RGB( 119, 136, 152 ) ,2, Vector( -657.547, 761.007, 11.5938  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 1, RGB( 119, 136, 152 ) ,3, Vector( -657.547, 761.007, 11.5938  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 1, RGB( 119, 136, 152 ) ,4, Vector( -657.547, 761.007, 11.5938  ), 140.020, 22, 999 ,17, 100, 21, 245 );
//============================ Team 2  ======================================================
AddClass( 2, RGB( 255, 141, 19 ) ,102, Vector( -872.58, -684.322, 11.2485  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 2, RGB( 255, 141, 19 ) ,103, Vector( -872.58, -684.322, 11.2485  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 2, RGB( 255, 141, 19 ) ,104, Vector( -872.58, -684.322, 11.2485  ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 3  ==========================================================
AddClass( 3, RGB( 163, 73, 164 ) ,117, Vector( -909.443, 868.406, 11.1285  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 3, RGB( 163, 73, 164 ) ,143, Vector( -909.443, 868.406, 11.1285  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 3, RGB( 163, 73, 164 ) ,157, Vector( -909.443, 868.406, 11.1285  ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 4  ========================================================
AddClass( 4, RGB( 32, 177, 170 ) ,180, Vector( -317.363, -582.453, 11.6022   ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 4, RGB( 32, 177, 170 ) ,147, Vector( -317.363, -582.453, 11.6022   ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 4, RGB( 32, 177, 170 ) ,146, Vector( -317.363, -582.453, 11.6022   ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 5  ===========================================================
AddClass( 5, RGB( 255, 215, 32 ) ,93, Vector( -596.914, 647.556, 11.6765 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 5, RGB( 255, 215, 32 ) ,94, Vector( -596.914, 647.556, 11.6765 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 5, RGB( 255, 215, 32 ) ,51, Vector( -596.914, 647.556, 11.6765 ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 6 ===========================================================
AddClass( 6, RGB( 99, 139, 236 ) ,140, Vector( 496.408, -85.5873, 10.0306 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 6, RGB( 99, 139, 236 ) ,46, Vector( 496.408, -85.5873, 10.0306 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 6, RGB( 99, 139, 236 ) ,158, Vector( 496.408, -85.5873, 10.0306 ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 7 =====================================================
AddClass( 7, RGB( 255, 141, 19 ) ,5, Vector( -133.334, -980.611, 10.4634 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 7, RGB( 255, 141, 19 ) ,6, Vector( -133.334, -980.611, 10.4634 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 7, RGB( 255, 141, 19 ) ,61, Vector( -133.334, -980.611, 10.4634 ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 8 ==============================================================
AddClass( 8, RGB( 244, 163, 97 ) ,62, Vector( 103.596, 245.139, 21.9012 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 8, RGB( 244, 163, 97 ) ,76, Vector( 103.596, 245.139, 21.9012 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 8, RGB( 244, 163, 97 ) ,77, Vector( 103.596, 245.139, 21.9012 ), 140.020, 22, 999 ,17, 100, 21, 245 );
}


function onPlayerRequestClass( player, classID, team, skin )
{
{
switch( skin )
    {
    case 2:
    {
 
Announce( "Team 1 Swat", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 3:
    {
 
Announce( "Team 1", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 4:
    {
 
Announce( "Grupo 1", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 102:
    {
 
Announce( "Team 2 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 103:
    {
 
Announce( "Team 2 Undercover # 2", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 104:
    {
 
Announce( "Team 2 Undercover # 3", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 117:
    {
 
Announce( "Team 3 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
case 143:
{
Announce( "Team 3 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 157:
{
Announce( "Team 3 Chica # 3", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 180:
{
Announce( "Team 4 Vercetty # 1", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 147:
{
Announce( "Team 4 Vercetty # 2", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 146:
{
Announce( "Team 4 Vercetty # 3", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 93:
{
Announce( "Team 5 Biker # 1", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 94:
{
Announce( "Team 5 Biker # 2", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 51:
{
Announce( "Team 5 Biker # 3", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 140:
{
Announce( "Team 6 cool # 1", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 46:
{
Announce( "Team 6 cool # 2", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 158:
{
Announce( "Team 6 ", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 5:
{
Announce( "Team 7 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 6:
{
Announce( "Team 7 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 61:
{
Announce( "Team 7 ", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 62:
{
Announce( "Team 8 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 76:
{
Announce( "Team 8 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 77:
{
Announce( "Team 8 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
}
 }
Announce("select you skin",player,1);
return 1;
}

luchgox

  • Full Member
  • Posts: 144
Strength does not come from wining.Your struggles develop your strengths.

EK.IceFlake

  • Hero Member
  • "We are the champions my fellahs" - Sufyan/VK.SuFy
  • Posts: 1,761
Re: Any way to detect your position xyz?
« Reply #7, on April 23rd, 2017, 05:36 AM »
Quote from kennedyarz on April 23rd, 2017, 12:28 AM
Quote from QW.jester on April 22nd, 2017, 01:22 PM
thanks @kennedyarz i also need this for setting the classes positions
use this :V
Code: [Select]
function OnScriptLoad()
{
//============================ Team 1 =========================================================
AddClass( 1, RGB( 119, 136, 152 ) ,2, Vector( -657.547, 761.007, 11.5938  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 1, RGB( 119, 136, 152 ) ,3, Vector( -657.547, 761.007, 11.5938  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 1, RGB( 119, 136, 152 ) ,4, Vector( -657.547, 761.007, 11.5938  ), 140.020, 22, 999 ,17, 100, 21, 245 );
//============================ Team 2  ======================================================
AddClass( 2, RGB( 255, 141, 19 ) ,102, Vector( -872.58, -684.322, 11.2485  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 2, RGB( 255, 141, 19 ) ,103, Vector( -872.58, -684.322, 11.2485  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 2, RGB( 255, 141, 19 ) ,104, Vector( -872.58, -684.322, 11.2485  ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 3  ==========================================================
AddClass( 3, RGB( 163, 73, 164 ) ,117, Vector( -909.443, 868.406, 11.1285  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 3, RGB( 163, 73, 164 ) ,143, Vector( -909.443, 868.406, 11.1285  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 3, RGB( 163, 73, 164 ) ,157, Vector( -909.443, 868.406, 11.1285  ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 4  ========================================================
AddClass( 4, RGB( 32, 177, 170 ) ,180, Vector( -317.363, -582.453, 11.6022   ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 4, RGB( 32, 177, 170 ) ,147, Vector( -317.363, -582.453, 11.6022   ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 4, RGB( 32, 177, 170 ) ,146, Vector( -317.363, -582.453, 11.6022   ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 5  ===========================================================
AddClass( 5, RGB( 255, 215, 32 ) ,93, Vector( -596.914, 647.556, 11.6765 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 5, RGB( 255, 215, 32 ) ,94, Vector( -596.914, 647.556, 11.6765 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 5, RGB( 255, 215, 32 ) ,51, Vector( -596.914, 647.556, 11.6765 ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 6 ===========================================================
AddClass( 6, RGB( 99, 139, 236 ) ,140, Vector( 496.408, -85.5873, 10.0306 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 6, RGB( 99, 139, 236 ) ,46, Vector( 496.408, -85.5873, 10.0306 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 6, RGB( 99, 139, 236 ) ,158, Vector( 496.408, -85.5873, 10.0306 ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 7 =====================================================
AddClass( 7, RGB( 255, 141, 19 ) ,5, Vector( -133.334, -980.611, 10.4634 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 7, RGB( 255, 141, 19 ) ,6, Vector( -133.334, -980.611, 10.4634 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 7, RGB( 255, 141, 19 ) ,61, Vector( -133.334, -980.611, 10.4634 ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 8 ==============================================================
AddClass( 8, RGB( 244, 163, 97 ) ,62, Vector( 103.596, 245.139, 21.9012 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 8, RGB( 244, 163, 97 ) ,76, Vector( 103.596, 245.139, 21.9012 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 8, RGB( 244, 163, 97 ) ,77, Vector( 103.596, 245.139, 21.9012 ), 140.020, 22, 999 ,17, 100, 21, 245 );
}


function onPlayerRequestClass( player, classID, team, skin )
{
{
switch( skin )
    {
    case 2:
    {
 
Announce( "Team 1 Swat", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 3:
    {
 
Announce( "Team 1", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 4:
    {
 
Announce( "Grupo 1", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 102:
    {
 
Announce( "Team 2 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 103:
    {
 
Announce( "Team 2 Undercover # 2", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 104:
    {
 
Announce( "Team 2 Undercover # 3", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 117:
    {
 
Announce( "Team 3 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
case 143:
{
Announce( "Team 3 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 157:
{
Announce( "Team 3 Chica # 3", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 180:
{
Announce( "Team 4 Vercetty # 1", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 147:
{
Announce( "Team 4 Vercetty # 2", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 146:
{
Announce( "Team 4 Vercetty # 3", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 93:
{
Announce( "Team 5 Biker # 1", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 94:
{
Announce( "Team 5 Biker # 2", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 51:
{
Announce( "Team 5 Biker # 3", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 140:
{
Announce( "Team 6 cool # 1", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 46:
{
Announce( "Team 6 cool # 2", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 158:
{
Announce( "Team 6 ", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 5:
{
Announce( "Team 7 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 6:
{
Announce( "Team 7 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 61:
{
Announce( "Team 7 ", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 62:
{
Announce( "Team 8 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 76:
{
Announce( "Team 8 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 77:
{
Announce( "Team 8 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
}
 }
Announce("select you skin",player,1);
return 1;
}
Are you serious?

KAKAN

  • Wiki Contributor
  • Posts: 3,346
You can contact me using Discord, at Developers.CPP( check off-board to find the invite link )
Github: https://github.com/theKAKAN

Cool

  • Hero Member
  • Posts: 719

Jagrit Vats

  • Newbie
  • Posts: 41

kennedyarz

  • Sr. Member
  • Making American Great Again
  • Posts: 334
Re: Any way to detect your position xyz?
« Reply #11, on April 23rd, 2017, 02:30 PM »
Quote from EK.IceFlake on April 23rd, 2017, 05:36 AM
Quote from kennedyarz on April 23rd, 2017, 12:28 AM
Quote from QW.jester on April 22nd, 2017, 01:22 PM
thanks @kennedyarz i also need this for setting the classes positions
use this :V
Code: [Select]
function OnScriptLoad()
{
//============================ Team 1 =========================================================
AddClass( 1, RGB( 119, 136, 152 ) ,2, Vector( -657.547, 761.007, 11.5938  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 1, RGB( 119, 136, 152 ) ,3, Vector( -657.547, 761.007, 11.5938  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 1, RGB( 119, 136, 152 ) ,4, Vector( -657.547, 761.007, 11.5938  ), 140.020, 22, 999 ,17, 100, 21, 245 );
//============================ Team 2  ======================================================
AddClass( 2, RGB( 255, 141, 19 ) ,102, Vector( -872.58, -684.322, 11.2485  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 2, RGB( 255, 141, 19 ) ,103, Vector( -872.58, -684.322, 11.2485  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 2, RGB( 255, 141, 19 ) ,104, Vector( -872.58, -684.322, 11.2485  ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 3  ==========================================================
AddClass( 3, RGB( 163, 73, 164 ) ,117, Vector( -909.443, 868.406, 11.1285  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 3, RGB( 163, 73, 164 ) ,143, Vector( -909.443, 868.406, 11.1285  ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 3, RGB( 163, 73, 164 ) ,157, Vector( -909.443, 868.406, 11.1285  ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 4  ========================================================
AddClass( 4, RGB( 32, 177, 170 ) ,180, Vector( -317.363, -582.453, 11.6022   ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 4, RGB( 32, 177, 170 ) ,147, Vector( -317.363, -582.453, 11.6022   ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 4, RGB( 32, 177, 170 ) ,146, Vector( -317.363, -582.453, 11.6022   ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 5  ===========================================================
AddClass( 5, RGB( 255, 215, 32 ) ,93, Vector( -596.914, 647.556, 11.6765 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 5, RGB( 255, 215, 32 ) ,94, Vector( -596.914, 647.556, 11.6765 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 5, RGB( 255, 215, 32 ) ,51, Vector( -596.914, 647.556, 11.6765 ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 6 ===========================================================
AddClass( 6, RGB( 99, 139, 236 ) ,140, Vector( 496.408, -85.5873, 10.0306 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 6, RGB( 99, 139, 236 ) ,46, Vector( 496.408, -85.5873, 10.0306 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 6, RGB( 99, 139, 236 ) ,158, Vector( 496.408, -85.5873, 10.0306 ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 7 =====================================================
AddClass( 7, RGB( 255, 141, 19 ) ,5, Vector( -133.334, -980.611, 10.4634 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 7, RGB( 255, 141, 19 ) ,6, Vector( -133.334, -980.611, 10.4634 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 7, RGB( 255, 141, 19 ) ,61, Vector( -133.334, -980.611, 10.4634 ), 140.020, 22, 999 ,17, 100, 21, 245 );
//=============================Team 8 ==============================================================
AddClass( 8, RGB( 244, 163, 97 ) ,62, Vector( 103.596, 245.139, 21.9012 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 8, RGB( 244, 163, 97 ) ,76, Vector( 103.596, 245.139, 21.9012 ), 140.020, 22, 999 ,17, 100, 21, 245 );
AddClass( 8, RGB( 244, 163, 97 ) ,77, Vector( 103.596, 245.139, 21.9012 ), 140.020, 22, 999 ,17, 100, 21, 245 );
}


function onPlayerRequestClass( player, classID, team, skin )
{
{
switch( skin )
    {
    case 2:
    {
 
Announce( "Team 1 Swat", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 3:
    {
 
Announce( "Team 1", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 4:
    {
 
Announce( "Grupo 1", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 102:
    {
 
Announce( "Team 2 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 103:
    {
 
Announce( "Team 2 Undercover # 2", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 104:
    {
 
Announce( "Team 2 Undercover # 3", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
    case 117:
    {
 
Announce( "Team 3 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
    }
    break;
case 143:
{
Announce( "Team 3 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 157:
{
Announce( "Team 3 Chica # 3", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 180:
{
Announce( "Team 4 Vercetty # 1", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 147:
{
Announce( "Team 4 Vercetty # 2", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 146:
{
Announce( "Team 4 Vercetty # 3", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 93:
{
Announce( "Team 5 Biker # 1", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 94:
{
Announce( "Team 5 Biker # 2", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 51:
{
Announce( "Team 5 Biker # 3", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 140:
{
Announce( "Team 6 cool # 1", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 46:
{
Announce( "Team 6 cool # 2", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 158:
{
Announce( "Team 6 ", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 5:
{
Announce( "Team 7 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 6:
{
Announce( "Team 7 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 61:
{
Announce( "Team 7 ", player, 6 );//
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 62:
{
Announce( "Team 8 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 76:
{
Announce( "Team 8 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
break;
case 77:
{
Announce( "Team 8 ", player, 6 );
player.SetAnim(28,231);
PlaySound( player.UniqueWorld , 335 , player.Pos );
}
}
 }
Announce("select you skin",player,1);
return 1;
}
Are you serious?
When I did not know anything used that method, is very old, I had it on my first server I decided to give it to you, I'm lazy to do another