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.


  Show Posts
Pages: 1 [2]
16  Scripting / Script Releases / Location Saver on: October 21, 2010, 09:21:17 pm
Location saver

This is a very simple script that can be used to save player or vehicle positions for use in the content.xml. All you need to do is stand (or park in a vehicle) where you want that skin/vehicle to spawn and type /save. If it is successful you will be told so.

You will find the saved locations in Scripts/LocationSaver/Saved_Locations.xml

Installation

To get this script running, extract LocationSaver.rar and place the folder (named LocationSaver) and scripts inside the LUServer/Scripts directory. Then make sure you change your content.xml to load the LocationSaver folder.

Download

Download the script from here: LU Location Saver

Notes

This script has been briefly tested and is being released in a working state, if you do encounter any problems then let me know so that I can fix the bugs quickly.

Release History

1.0 - Initial Release
1.1 - Content.xml ready Vehicle location saving
17  Liberty Unleashed / Liberty Unleashed Chat / Liberty Unleashed Public Beta Script on: July 28, 2010, 03:20:31 pm
VRocker has asked me to post the script that we've been using on the server for the public beta we are currently running, it's very easy to learn and understand so here you go. :)

Code: (squirrel) [Select]
/*
Beta Script - Script used for the LU Public Beta Tests
by Force
*/

function onPlayerJoin( pPlayer )
{
MessagePlayer( "Welcome to the server nablet! Hope you enjoy the beta testing!", pPlayer );
MessagePlayer( "/airport /heal /wep /goto", pPlayer );
}

function onPlayerKill( pKiller, pKilled, iWeapon, iBodyPart )
{
/* Get the weapon name and the body part name, putting in an offset for its Unknown */
local szWeapon = GetWeaponName( iWeapon ), szBodyPart = GetBodyPartName( iBodyPart );

if ( szBodyPart == "Unknown" ) szBodyPart = "Body";

Message( pKiller + " killed " + pKilled + " (" + szWeapon + ") (" + szBodyPart + ")", Colour( 255, 0, 0 ) );
}

function onPlayerDeath( pPlayer, iReason )
{
Message( pPlayer + " has died of a freak accident.", Colour( 255, 0, 0 ) );
}

function onPlayerCommand( pPlayer, szCommand, szParams )
{
local pTemp;

if ( szCommand == "heal" )
{
if ( pPlayer.Health < 100 )
{
Message( pPlayer + " has been healed.", Colour( 0, 255, 0 ) );
pPlayer.Health = 100;
}
else MessagePlayer( "Your health is full!", pPlayer );
}
else if ( szCommand == "wep" )
{
if ( !szParams ) MessagePlayer( "Error - Need to specify a weapon ID.", pPlayer );
else
{
pTemp = split( szParams, " " );
if ( IsNum( pTemp[ 0 ] ) )
{
local iWep = pTemp[ 0 ].tointeger();
if ( ( iWep > 0 ) && ( iWep < 12 ) ) pPlayer.SetWeapon( iWep, 250 );
else MessagePlayer( "Error - Invalid weapon ID!", pPlayer );
}
else MessagePlayer( "Error - Need to specify a weapon ID.", pPlayer );
}
}
else if ( szCommand == "goto" )
{
if ( !szParams ) MessagePlayer( "Error - Need to specify a target player.", pPlayer );
else
{
local pTemp = split( szParams, " " ), p = GetPlayer( pTemp[ 0 ] );
if ( p )
{
if ( p.Spawned )
{
Message( "Taking " + pPlayer + " to " + p, Colour( 0, 255, 0 ) );
pPlayer.Pos = p.Pos;
}
else MessagePlayer( "This person isn't spawned nub!", pPlayer );
}
else MessagePlayer( "Can't find anyone with that id/nick", pPlayer );
}
}
else if ( szCommand == "surface" )
{
local iValue = 4.5;
if ( szParams ) iValue = szParams.tofloat();
SetSurfaceTraction( 10, iValue );
}
else if ( szCommand == "gamespeed" )
{
local iValue = 1;
if ( szParams ) iValue = szParams.tofloat();
SetGamespeed( iValue );
}
else if ( szCommand == "gravity" )
{
local iValue = 0.008;
if ( szParams ) iValue = szParams.tofloat();
SetGravity( iValue );
}
else if ( szCommand == "irc" ) Message( "IRC - irc.manana.liberty-unleashed.co.uk - #lu.echo" );
}

function GetPlayer( target )
{
target = target.tostring();

if ( IsNum( target ) )
{
target = target.tointeger();

if ( FindPlayer( target ) ) return FindPlayer( target );
else return null;
}
else if ( FindPlayer( target ) ) return FindPlayer( target );
else return null;
}
18  Off Topic / General Chat / STEAM Holiday Sale on: December 23, 2009, 03:33:42 am
If you've got STEAM and haven't checked out the Store page then WTF are you doing? Huge sales are going on, with games up to 90% off.
* Force just bought GTA: IV for £5 :)

Happy holidays!
19  Off Topic / General Chat / Force's Beginner Scripts - Squirrel (v1) on: November 26, 2009, 04:13:57 pm
I've been busy yet again, and as barely anyone knows any Squirrel I thought I'd make these simple scripts so that you could begin to understand the language better and start writing your own scripts for the VC:MP Squirrel Server and the release of LU/VU.

The scripts that I have created can only be run using this server created by VRocker, Juppi and knight2k9. There are no echo channel functions (yet :P) but I have included things like Auto-Ban for Vehicle HP Hackers and !gotoloc and !saveloc commands. I have also added /c stats <on/off> and /c nogoto <on/off>

Hope you enjoy and reply to this topic if you find any bugs in the script!

FBS Update Log

27/11/09

* Fixed a bug with the scripts checking for less than 100% vehicle HP rather than more than 100% vehicle HP, therefore meaning that everyone who didn't hack was auto-banned.

Click HERE for the download link.

Once LU is released I can always convert it to work with LU :).

Enjoy!
Pages: 1 [2]
© Liberty Unleashed Team.