Any way to detect your position xyz?

Started by Radon, Apr 20, 2017, 01:49 PM

Previous topic - Next topic

Radon

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

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

Quote from: EK.IceFlake on Apr 20, 2017, 01:53 PMThen use /s to display your current position.
MessagePlayer(player, "text") - incorrect
MessagePlayer("text", player) - correct

kennedyarz

Quote from: EK.IceFlake on Apr 20, 2017, 01:53 PMfunction 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.

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

thanks @kennedyarz i also need this for setting the classes positions
Strength does not come from wining.Your struggles develop your strengths.

kennedyarz

Quote from: QW.jester on Apr 22, 2017, 12:22 PMthanks @kennedyarz i also need this for setting the classes positions

use this :V
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

Strength does not come from wining.Your struggles develop your strengths.

EK.IceFlake

Quote from: kennedyarz on Apr 22, 2017, 11:28 PM
Quote from: QW.jester on Apr 22, 2017, 12:22 PMthanks @kennedyarz i also need this for setting the classes positions

use this :V
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

https://pastebin.com/gL8aEUaj
That looks a bit cleaner to me. I'm not sure if it works. You can give it a try as well :)
oh no

Cool

Did you Guys for forgot topic
"Any way to detect your position xyz"


kennedyarz

Quote from: EK.IceFlake on Apr 23, 2017, 04:36 AM
Quote from: kennedyarz on Apr 22, 2017, 11:28 PM
Quote from: QW.jester on Apr 22, 2017, 12:22 PMthanks @kennedyarz i also need this for setting the classes positions

use this :V
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