Example of a sphere on my server..
Before function onscriptload
//Camera Matrix For GunShop
A_SPickupPos <- Vector( 347.0, -713.3, 26.4 );
//Camera Matrix For GunShop
-onScriptLoad
local pSphere = CreateSphere( Vector( 352.0, -710.7, 26.2 ), 1.0, Colour( 0, 0, 0 ) );
if ( pSphere ) pSphere.Type = MARKER_TYPE_PLAYER;
local pSphere = CreateSphere( Vector( 351.4, -712.9, 26.4 ), 1.0, Colour( 0, 0, 0 ) );
if ( pSphere ) pSphere.Type = MARKER_TYPE_PLAYER;
after Unload
function onPlayerEnterSphere( player, sphere )
{
Message ( "" + sphere.ID + "" );
ClearMessages(player);
if ( sphere.ID == 0 )
{
local newpos = Vector( 351.7, -714.8, 26.4 );
player.Pos = newpos;
SetCameraMatrix( player, Vector( 341.1, -720.6, 28.1 ), A_SPickupPos );
}
else if ( sphere.ID == 1 )
{
RestoreCamera( player );
local newpos = Vector( 349.8, -710.5, 26.2 );
player.Pos = newpos;
}
return 1;
}
---------------------------------------------------------
and this is from mess about.. sorry lazyness xD
else if ( szCommand == "airport" )
{
MessagePlayer( "Sending you to the airport...", pPlayer );
pPlayer.Pos = Vector( -1507.09, -909.92, 11.09 );
}
thats as simple as it gets... Camera matrix is complicating so i figure i will show you that along with new locations on spheres
as of the other server no clue..