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 [3] 4 5 ... 8
31  Off Topic / Spam / Two releases on: November 22, 2012, 05:16:41 pm
Assassin's creed III and Hitman Absolution. what do you say?

Got Assassin's creed III recently, it has very high detailed graphics, gameplay, story.. haven't played Hitman! please tell me if it is worth a buy..
32  Scripting / Script Releases / Re: Ok on: November 13, 2012, 10:29:41 am
Nice work but Fuel Script is made by X_94 for Liberty RPG.


Yeah yeah, author actually mean the author of the original post, but I will change it :)
Rocky-i'm not sure if we are talking about same fuel script but X_94's fuel script was released and posted here way before when Liberty RPG wasn't even existing.
IdkanYavuk-sashok just reposted it because it was removed from script releases.
Anyways, great topic!


Svenko, we are not talking about the same fuel script, sashok789 posted the one X_94 designed for Liberty RPG which includes speed-o-meter, lights toggle and stuffs which was not released  and you are talking about the old one.

Checkout Liberty RPG pictures
http://forum.liberty-unleashed.co.uk/index.php?topic=1041.15
and the picture from his post.
http://forum.liberty-unleashed.co.uk/index.php?topic=1250.0

both fuel script are same.
33  Scripting / Script Releases / Re: [EN] -- Script Releases Central -- on: November 13, 2012, 05:04:23 am
Nice work but Fuel Script is made by X_94 for Liberty RPG.
34  Scripting / Script Help / Re: timer error :-\ on: November 12, 2012, 04:29:00 am
how can i make stop timer ???

   like this :

      StopTimer( "..", 1000, 1, ....);

VehTimer <- NewTimer( "..", 1000, 1, ....);
VehTimer.Delete(); //Delete the timer.
VehTimer.Pause(); //Pause the timer.
VehTimer.Start(); //Resume the timer.
35  Scripting / Script Releases / Re: New LU Fuel Speedo Script on: November 11, 2012, 11:54:11 am
OMFG, This script is awesome, the problem here is that: I DIDN'T SHARE IT WITH YOU, i released only an old fuel meter called LU Fuel Script (LUFS) and this one is the one we (rocky and me) are using on Liberty RPG.
Suggestion: Client scripts should not be downloaded as they are from our servers. You can easily find all the scripts the ppl uses on their servers on your Documents folder and that is a BIG problem.

My fault X_94, i should have compiled it.
36  Scripting / Script Help / Re: Colors in -SmallMessage- on: November 11, 2012, 11:50:16 am
http://wiki.sa-mp.com/wiki/GameTextStyle#Text_Colors
Try text colors i guess all of them works.

37  Scripting / Scripting Discussion / Pinned Gamemode on: November 09, 2012, 04:19:33 pm
it would be great if one of the released gamemode were pinned so people who are new don't need to search the whole script releases to find a neat one.  :)
38  Servers / Advertise your server! / Re: [NEW] GTA-Multiplayer.cz Server on: November 08, 2012, 05:28:56 pm
Looking nice! GL
39  Scripting / Script Help / Re: UTB why does not work? on: November 07, 2012, 01:01:36 pm
What do you mean by UTB?

I thought he mean't GUI.
40  Scripting / Script Releases / Re: LUFuel Script on: October 06, 2012, 08:05:05 am
Code: [Select]
/*
     Liberty Unleashed Fuel Script - Server
    Version 1.0 
    by [MKs]X_94
*/   

//---  Data  ---

const Price_Per_Liter = 20;
const Max_Gas = 50;
const Min_Gas = 10;
const Rand_Gas = 20;
const FSphereRadius = 5.0;
local fuel = array( MAX_VEHICLES   1, 0 );
local Dispatchers = array( MAX_SPHERES   1, null );
BLUE <- ::Colour( 0, 0, 255 );
ORANGE <- ::Colour( 255, 153, 0 );
LBLUE <- ::Colour( 51, 51, 153 );
GREEN <- ::Colour( 0, 255, 0 );
RED <- ::Colour( 255, 0, 0 );
SKYBLUE <- ::Colour( 0, 102, 255 );
PURPLE <- ::Colour( 204, 0, 204 );
iCPURPLE <- ::Colour( 100, 20, 255 );

//--- Script Events ---

function onScriptLoad()
{
    for ( local i = 0; i <= MAX_VEHICLES; i   ) fuel[ i ] = Random( Min_Gas, Rand_Gas );
    Dispatchers[ 0 ] = CreateDispatcher( 0, Vector( 1155.50, -74.10, 7.47 ) );
    Dispatchers[ 1 ] = CreateDispatcher( 1, Vector( 1163.50, -74.31, 7.47 ) );
    Dispatchers[ 2 ] = CreateDispatcher( 2, Vector( 1171.50, -74.40, 7.47 ) );   
    NewTimer( "FuelProcess", 60000, 0 );
    print( "LU Fuel Script Loaded" );
    return 1;   
}

function onPlayerEnterSphere( player, Sph )
{
    local Dispatcher = FindDispatcher( Sph.ID );
    if ( Dispatcher )
    {
        if ( !Dispatcher.Player || Dispatcher.Player == player.Name )
        {
            if ( FindPlayerDispatcher( player ) ) MessagePlayer( "You are using other dispatcher yet", player, RED );
            else
            {
                Dispatcher.Player = player;
                CallClientFunc( player, "LU-FS/LUFC.nut", "CreateMenu" );
            }   
        }
        else MessagePlayer( "Sorry, this fuel dispatcher is being using, go to other dispatcher or fuel station", player, RED );
    }
    return 1;
}

function onPlayerExitSphere( player, Sph )
{
    local Dispatcher = FindDispatcher( Sph.ID );
    if ( Dispatcher )
    {
        if ( Dispatcher.Player )
        {
            Dispatcher.Player = null;
            CallClientFunc( player, "LU-FS/LUFC.nut", "DeleteMenu" );         
        }
    }
    return 1;
}   

function onVehicleRespawn( vehicle )
{
    fuel[ vehicle.ID ] = Random( Min_Gas, Rand_Gas );
    return 1;
}

function onPlayerEnteredVehicle( player, vehicle, door )
{
    if ( fuel[ vehicle.ID ] <= 0 )
    {
        CallClientFunc( player, "LU-FS/LUFC.nut", "DisplayFuelMeter", "EMPTY" );
        vehicle.SetEngineState( false );
        fuel[ vehicle.ID ] = 0;
    }
    else
    {
        CallClientFunc( player, "LU-FS/LUFC.nut", "DisplayFuelMeter", fuel[ vehicle.ID ] );
    }
    return 1;
}

function FindPlayerDispatcher( plr )
{
    for ( local i = 0; i <= MAX_SPHERES; i   )
    {
        local D = FindDispatcher( i );
        if ( D && D.Player == plr.Name ) { return true; break; }
    }
    return false;
}

//---- Script Functions ----

function FuelProcess()
{
    for ( local i = 0; i <= MAX_PLAYERS; i   )
    {
        local player = FindPlayer( i );
        if ( player && player.Vehicle )
        {
            local veh = player.Vehicle;
            if ( IsVehicleCar( veh.Model ) )
            {
                if    ( veh.Driver.ID == player.ID )
                {
                    fuel[ veh.ID ] --;
                }
           
                if ( fuel[ veh.ID ] <= 0 )
                {
                    CallClientFunc( player, "LU-FS/LUFC.nut", "DisplayFuelMeter", "EMPTY" );
                    if    ( veh.Driver.ID == player.ID )
                    {
                        veh.SetEngineState( false );
                    }
                    fuel[ veh.ID ] = 0;
                }
                else
                {
                    veh.SetEngineState( true );
                    CallClientFunc( player, "LU-FS/LUFC.nut", "DisplayFuelMeter", fuel[ veh.ID ] );
                }   
            }
        }
    }
}
   
class CreateDispatcher
{
    function constructor( id, pos )
    {
        Player = null;
        Pos = pos;
        ID = id;     
        local D = ::CreateSphere( pos, FSphereRadius, ::Colour( Random( 0, 256 ), Random( 0, 256 ), Random( 0, 256 ) ) );
        if ( D )
        {
            D.Type = 2;
            Sphere = D.ID;
        }   
    }
    Player = null;
    Pos = null;
    ID = 0;
    Sphere = 0;
}
   
function FindDispatcher( sphID )
{
    for ( local i = 0; i <= MAX_SPHERES; i   )
    {
        local D = Dispatchers[ i ];
        if ( D && D.Sphere == sphID ) { return Dispatchers[ i ]; break; }
    }
    return null;
}   
   
function Random( min, max )
{
    min = min.tointeger(), max = max.tointeger();
    local a = rand() % ( max - min );
    return a;
}
   
function SetVehicleTank( player, tank )
{
    local veh = player.Vehicle;
    if ( veh )
    {
        local cost = Price_Per_Liter * tank;
        if ( player.Cash < cost ) MessagePlayer( "Error - You need at least $" + cost + " in your pocket", player, RED );
        else
        {
            if ( fuel[ veh.ID ] == Max_Gas ) MessagePlayer( "Error - Your car is full yet", player, RED );
            else
{
if ( ( fuel[ veh.ID ]  tank ) < Max_Gas )
            {
                MessagePlayer( "Your car has been refuelled with " + tank + " liters of fuel, Cost: $" + cost + " good luck ", player, GREEN );
                fuel[ veh.ID ]  = tank;           
                player.Cash -= cost;
            }
else MessagePlayer( "Error - Excesive amount, you cannot have more than " + Max_Gas + " liters in your car", player, RED );
}
        }         
    }
}   
   
   //---- Juppi's function ----
function IsVehicleCar( model )
{
    switch ( model )
    {
        case VEH_PREDATOR:
        case VEH_TRAIN:
        case VEH_CHOPPER:
        case VEH_DODO:
        case VEH_RCBANDIT:
        case VEH_AIRTRAIN:
        case VEH_DEADDODO:
        case VEH_SPEEDER:
        case VEH_REEFER:
        return false;
    }
   
    return true;
}
41  Scripting / Script Releases / Re: LUFuel Script on: October 05, 2012, 02:41:49 pm
Code: [Select]
else if ( ( fuel[ veh.ID ]  tank ) < Max_Gas )
The problem persists
Something has to be between [veh.ID] and tank, what is that?
I'm a newbie at scripting, I know some things, but I don't have any idea there

What error?
42  Scripting / Script Releases / Re: LUFuel Script on: October 04, 2012, 09:27:37 am
He erased it.

Then this shouldn't have been posted without his permissions.

Here is the code anyway,


Code: [Select]
/*
     Liberty Unleashed Fuel Script - Server
    Version 1.0 
    by [MKs]X_94
*/   

//---  Data  ---

const Price_Per_Liter = 20;
const Max_Gas = 50;
const Min_Gas = 10;
const Rand_Gas = 20;
const FSphereRadius = 5.0;
local fuel = array( MAX_VEHICLES   1, 0 );
local Dispatchers = array( MAX_SPHERES   1, null );
BLUE <- ::Colour( 0, 0, 255 );
ORANGE <- ::Colour( 255, 153, 0 );
LBLUE <- ::Colour( 51, 51, 153 );
GREEN <- ::Colour( 0, 255, 0 );
RED <- ::Colour( 255, 0, 0 );
SKYBLUE <- ::Colour( 0, 102, 255 );
PURPLE <- ::Colour( 204, 0, 204 );
iCPURPLE <- ::Colour( 100, 20, 255 );

//--- Script Events ---

function onScriptLoad()
{
    for ( local i = 0; i <= MAX_VEHICLES; i   ) fuel[ i ] = Random( Min_Gas, Rand_Gas );
    Dispatchers[ 0 ] = CreateDispatcher( 0, Vector( 1155.50, -74.10, 7.47 ) );
    Dispatchers[ 1 ] = CreateDispatcher( 1, Vector( 1163.50, -74.31, 7.47 ) );
    Dispatchers[ 2 ] = CreateDispatcher( 2, Vector( 1171.50, -74.40, 7.47 ) );   
    NewTimer( "FuelProcess", 60000, 0 );
    print( "LU Fuel Script Loaded" );
    return 1;   
}

function onPlayerEnterSphere( player, Sph )
{
    local Dispatcher = FindDispatcher( Sph.ID );
    if ( Dispatcher )
    {
        if ( !Dispatcher.Player || Dispatcher.Player == player.Name )
        {
            if ( FindPlayerDispatcher( player ) ) MessagePlayer( "You are using other dispatcher yet", player, RED );
            else
            {
                Dispatcher.Player = player;
                CallClientFunc( player, "LU-FS/LUFC.nut", "CreateMenu" );
            }   
        }
        else MessagePlayer( "Sorry, this fuel dispatcher is being using, go to other dispatcher or fuel station", player, RED );
    }
    return 1;
}

function onPlayerExitSphere( player, Sph )
{
    local Dispatcher = FindDispatcher( Sph.ID );
    if ( Dispatcher )
    {
        if ( Dispatcher.Player )
        {
            Dispatcher.Player = null;
            CallClientFunc( player, "LU-FS/LUFC.nut", "DeleteMenu" );         
        }
    }
    return 1;
}   

function onVehicleRespawn( vehicle )
{
    fuel[ vehicle.ID ] = Random( Min_Gas, Rand_Gas );
    return 1;
}

function onPlayerEnteredVehicle( player, vehicle, door )
{
    if ( fuel[ vehicle.ID ] <= 0 )
    {
        CallClientFunc( player, "LU-FS/LUFC.nut", "DisplayFuelMeter", "EMPTY" );
        vehicle.SetEngineState( false );
        fuel[ vehicle.ID ] = 0;
    }
    else
    {
        CallClientFunc( player, "LU-FS/LUFC.nut", "DisplayFuelMeter", fuel[ vehicle.ID ] );
    }
    return 1;
}

function FindPlayerDispatcher( plr )
{
    for ( local i = 0; i <= MAX_SPHERES; i   )
    {
        local D = FindDispatcher( i );
        if ( D && D.Player == plr.Name ) { return true; break; }
    }
    return false;
}

//---- Script Functions ----

function FuelProcess()
{
    for ( local i = 0; i <= MAX_PLAYERS; i   )
    {
        local player = FindPlayer( i );
        if ( player && player.Vehicle )
        {
            local veh = player.Vehicle;
            if ( IsVehicleCar( veh.Model ) )
            {
                if    ( veh.Driver.ID == player.ID )
                {
                    fuel[ veh.ID ] --;
                }
           
                if ( fuel[ veh.ID ] <= 0 )
                {
                    CallClientFunc( player, "LU-FS/LUFC.nut", "DisplayFuelMeter", "EMPTY" );
                    if    ( veh.Driver.ID == player.ID )
                    {
                        veh.SetEngineState( false );
                    }
                    fuel[ veh.ID ] = 0;
                }
                else
                {
                    veh.SetEngineState( true );
                    CallClientFunc( player, "LU-FS/LUFC.nut", "DisplayFuelMeter", fuel[ veh.ID ] );
                }   
            }
        }
    }
}
   
class CreateDispatcher
{
    function constructor( id, pos )
    {
        Player = null;
        Pos = pos;
        ID = id;     
        local D = ::CreateSphere( pos, FSphereRadius, ::Colour( Random( 0, 256 ), Random( 0, 256 ), Random( 0, 256 ) ) );
        if ( D )
        {
            D.Type = 2;
            Sphere = D.ID;
        }   
    }
    Player = null;
    Pos = null;
    ID = 0;
    Sphere = 0;
}
   
function FindDispatcher( sphID )
{
    for ( local i = 0; i <= MAX_SPHERES; i   )
    {
        local D = Dispatchers[ i ];
        if ( D && D.Sphere == sphID ) { return Dispatchers[ i ]; break; }
    }
    return null;
}   
   
function Random( min, max )
{
    min = min.tointeger(), max = max.tointeger();
    local a = rand() % ( max - min );
    return a;
}
   
function SetVehicleTank( player, tank )
{
    local veh = player.Vehicle;
    if ( veh )
    {
        local cost = Price_Per_Liter * tank;
        if ( player.Cash < cost ) MessagePlayer( "Error - You need at least $" + cost + " in your pocket", player, RED );
        else
        {
            if ( fuel[ veh.ID ] == Max_Gas ) MessagePlayer( "Error - Your car is full yet", player, RED );
            else if ( ( fuel[ veh.ID ]  tank ) < Max_Gas )
            {
                MessagePlayer( "Your car has been refuelled with " + tank + " liters of fuel, Cost: $" + cost + " good luck ", player, GREEN );
                fuel[ veh.ID ]  = tank;           
                player.Cash -= cost;
            }
else MessagePlayer( "Error - Excesive amount, you cannot have more than " + Max_Gas + " liters in your car", player, RED );
        }         
    }
}   
   
   //---- Juppi's function ----
function IsVehicleCar( model )
{
    switch ( model )
    {
        case VEH_PREDATOR:
        case VEH_TRAIN:
        case VEH_CHOPPER:
        case VEH_DODO:
        case VEH_RCBANDIT:
        case VEH_AIRTRAIN:
        case VEH_DEADDODO:
        case VEH_SPEEDER:
        case VEH_REEFER:
        return false;
    }
   
    return true;
}

Just required some minor fixes.
43  Scripting / Script Releases / Re: LUFuel Script on: October 02, 2012, 09:05:17 am
X_94 already posted this.  ???
44  Off Topic / Spam / Re: Who you will support much? on: September 21, 2012, 04:22:53 pm
* Yuri wears the Jetpack and jumps out from the dodo and flying away.


* Rocky 's bow hit his jetpack and started flying around like crazy
45  Off Topic / Spam / Re: Who you will support much? on: September 21, 2012, 11:02:03 am
Welcome to the spam board boys and girls! ;)
actually there's no Girls
My girlfriend is helping me develop a LU server for Argo. There may be very few of them online, but thanks to MySpace and Facebook, they do exist! ;)

I need girlfriends like that D:
Girlfriends?!? I'm not a player! D:

My bad, i meant girlfriend
Get to huntin'! :O

* SugarD hands Rocky a large caveman-style club.

* Yuri Slaps Rocky and SugarD-x and spawning Dodo and flying away.
* SugarD fires a rocket at Yuri and laughs maniacally.

* Rocky takes out his ultimate bow and aims at the dodo and FIRES!
Pages: 1 2 [3] 4 5 ... 8
© Liberty Unleashed Team.