Liberty Unleashed
Scripting => Script Help => Topic started by: WheatleyGAMING on January 26, 2016, 11:55:16 pm
-
Hi,I remember one time I was on a server a long time ago and the banshee was a Lamborghini. I really wanna use custom models. Also how do you create teleports? Much would be appreiciated.
-
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.. :P
-
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.. :P
Thanks ^_^ But it wont work but i think its because of the way I put the files or something,any chance you can make a folder with the scripts you used and the script.xml? It would be great if you did :D
-
I will attempt to. I am at work at the moment. so maybe tomorrow if i have time,i should have time.
The camera matrix is a good way to play with spawn screen as well.
I sent you a PM with a Link :P
-
Awesome!Thank you so much ^-^