Recent Posts

Pages: [1] 2 3 ... 10
1
Script Snippets / Hud radar control
« Last post by Motley on December 07, 2017, 02:31:21 am »
Okay well, There was a stronger reason behind having this.
Code: [Select]
GetHUDItemEnabledIs broken, I originally had this as a method for detections, I wasn't really extremely worried about the scripting method, I just wanted it to work right.

You could redo this to be horizontal if you wanted it to be, Nice snippet for playing with the original hood related data ;)

Code: [Select]
//----------------------------------------------------------

/*
    Turn off all radar related data.
    This system is outdated but we will keep it anywho, never updated
    Used for flashing the origanal radar and much more

*/


class Player_Progress {

/*
    Used as a method to unlock stuff for a player
    But can be used for on/off methods
*/
    // Hud Related
    Radar = false;
    Clock = false;

    Money = false;
    Armour = false;
    Health = false;
    Weapon = false;
    Wanted = false;
    // Hud Related

    function Set_Radar(bool) {
       
        if (bool == true )
        {
            Radar = true;
            ::SetHUDItemEnabled( ::HUD_RADAR, Radar)
        }
        else {
            Radar = false;
            ::SetHUDItemEnabled( ::HUD_RADAR, Radar)
        }
       
    }

    function Set_Armour(bool) {
       
        if (bool == true )
        {
            Armour = true;
            ::SetHUDItemEnabled( ::HUD_ARMOUR, Armour)
        }
        else {
            Armour = false;
            ::SetHUDItemEnabled( ::HUD_ARMOUR, Armour)
        }
       
    }

    function Set_Health(bool) {
       
        if (bool == true )
        {
            Health = true;
            ::SetHUDItemEnabled( ::HUD_HEALTH, Health)
        }
        else {
            Health = false;
            ::SetHUDItemEnabled( ::HUD_HEALTH, Health)
        }
       
    }
   
    function Set_Money(bool) {
       
        if (bool == true )
        {
            Money = true;
            ::SetHUDItemEnabled( ::HUD_MONEY, Money)
        }
        else {
            Money = false;
            ::SetHUDItemEnabled( ::HUD_MONEY, Money)
        }
       
    }
    function Set_Wanted(bool) {
       
        if (bool == true )
        {
            Wanted = true;
            ::SetHUDItemEnabled( ::HUD_WANTED, Wanted)
        }
        else {
            Wanted = false;
            ::SetHUDItemEnabled( ::HUD_WANTED, Wanted)
        }
       
    }
    function Set_Weapon(bool) {
       
        if (bool == true )
        {
            Weapon = true;
            ::SetHUDItemEnabled( ::HUD_WEAPON, Weapon)
        }
        else {
            Weapon = false;
            ::SetHUDItemEnabled( ::HUD_WEAPON, Weapon)
        }
       
    }
    function Set_Clock(bool) {
       
        if (bool == true )
        {
            Clock = true;
            ::SetHUDItemEnabled( ::HUD_CLOCK, Clock)
        }
        else {
            Clock = false;
            ::SetHUDItemEnabled( ::HUD_CLOCK, Clock)
        }
       
    }
}

function onScriptLoad()
{
    // false hide all data
    Player_Progress().Set_Radar(false)
    Player_Progress().Set_Armour(false)
    Player_Progress().Set_Health(false)
    Player_Progress().Set_Money(false)
    Player_Progress().Set_Wanted(false)
    Player_Progress().Set_Weapon(false)
    Player_Progress().Set_Clock(false)

}

Examples are at the bottom on script load

An example of finding out if something is on or off would be
Code: [Select]
print("Your Radar is set to: " + Player_Progress().Radar)

False is off, True is on.

You should probably rename the class as it wouldn't really fit to your usages lol. Unless it's whatever to you :P

Enjoy ;)
2
General Chat / Re: Im happy I now signed up
« Last post by MrDamage on December 04, 2017, 10:03:42 pm »
Excellent read, I just passed this onto a friend who was doing some research on that. And he just click the following internet site bought me lunch because I found it for him smile Therefore let me rephrase that: Thanks for lunch!
those fucking bots lol
3
He is a stubborm fuck but ive been his friend for time. He does keep LU alive. (kind of) Also hes been on LU for god knows how long. Plus the tolls don't make sense. A: Your gay or B: You hate him. So fair aint it.
4
General Chat / Im happy I now signed up
« Last post by BaileyHell on November 26, 2017, 07:29:20 am »
Excellent read, I just passed this onto a friend who was doing some research on that. And he just click the following internet site bought me lunch because I found it for him smile Therefore let me rephrase that: Thanks for lunch!
5
General Chat / Re: Im glad I finally signed up
« Last post by Nicolas Feitoza on November 17, 2017, 12:47:39 am »
With thanks. Wonderful information!

my site - ??? ???????? ???? ??????????? ???????
mas oque é isso que está aparecendo no meu computador hein?
6
General Chat / Im glad I finally signed up
« Last post by XDXAnthony on November 17, 2017, 12:42:39 am »
With thanks. Wonderful information!

my site - ??? ???????? ???? ??????????? ???????
7
Script Releases / Helicopters and Nukes!
« Last post by ARSEnic. on November 11, 2017, 03:23:42 pm »
Yes you read that right! Helicopters and Nukes are coming to LU!

But firstly, just to make you less excited so you don't do anything stupid, both of them are together in this post BUT not together in a script!


So here's the nuke script

Here are some photos
Aiming screen:


Dropping the nuke:


And the aftermath!:





Controls
W - Moves the camera North   ^
A - Moves the camera West     <
S - Moves the camera South    v
D - Moves the camera East      >
Shift - Moves the camera Up          ^^^
Control - Moves the camera Down   vvv
Left Mouse Button - Launches the Nuke!    X

Commands
/test - "Teleports" you the the "Helicopter" (nice command I know, don't judge)


Known Bugs
Don't you just love bugs.
-The third time anyone drops the nuke, everyone in the server crashes*.
That's it.

*Definition of crash - of (a computer, computing system, or software) fail suddenly, Oxford Dictionary



Summary
So basically you navigate to where you want to nuke with W, A, S, D, fly higher or lower with shift and control and nuke with the left mouse button! (Found on your keyboard and mouse) A bomb will pop out, the camera will follow the nuke to the ground and the nuke will detonate itself when it reaches ground level (if you don't know how nukes work).

I added a nice little counter at the bottom right of the screen that tells you the current position of the camera which you're supposed to pretend is actually a helicopter with nukes, and also the ground level of the camera's position.

Also I've added a maximum flying height of 500m (or whatever units lu uses) and a minimum flying height of about 50m from the ground level, along with a crappy detection system that spams you with "We'll hit a building!" when you are about to hit a building (the lower part of one, anyway).




And the helicopter script
No nukes for this one :( but hey 3D camera!

More photos








More Controls
F - Enters/Exits the helicopter
ENTER - Starts/Stops the Helicopter's Engine
W - Increases the Helicopter's Engine Power    +++
S - Decreases the Helicopter's Engine Power    - - -
A - Rotates the Helicopter Left   <
D - Rotates the Helicopter Right >
Arrow Up - Tilts the Helicopter Forward      ^
Arrow Down - Tilts the Helicopter Backward   V
Arrow Left - Tilts the Helicopter Left         <
Arrow Right - Tilts the Helicopter Right     >


More Commands
None. Aren't you happy.

Bugs
I realize that the player still moves when flying the plane, and there's still tons of bugs like how the helicopter stops flying halfway sometimes I'm not going to update this anymore so have fun fixing it! xD


Another summary
So basically you enter the helicopter by pressing F, then you start the engine by pressing enter. You give the engine more power by pressing W, less power by pressing S. When you're high enough, press A or D to rotate the helicopter towards the left or right respectively, and press the up down left right arrow key to tilt it forwards, backwards, towards the left or towards the right respectively.

I added an INI file which loads the position of the helicopter and spawns it into the world when the script loads. It is recommended that you use that to spawn in the helicopter instead of manually adding it via commands or whatever method, otherwise fear the wrath of ERRORS!

There's tons of math calculations to this and this script isn't exactly 'edit friendly' so you'll probably have to dig around quite a lot and find out where to change the bindkeys.

The GUI is horribly buggy with tons of overlapping labels, I'm just going to release it now because I'm too lazy to continue working on it. Feel free to edit the script and use it in your server or play around with it or do whatever but if you're going to upload another script based on this, HAVE THE DECENCY TO AT LEAST CREDIT ME AND LINK BACK TO THIS TOPIC. I get really annoyed at people who just takes other people's scripts and claims it as their own.

Other than the GUI, the Helicopter's movement, script management and the camera movement can really be improved (as Vortex suggested). If you are to make a better version of this script, do share it with the LU community by replying to this topic or whatever AS LONG AS YOU CREDIT ME.

Lastly, the reload time thingy was something i wanted to implement but got too lazy to, again, feel free to add guns or nukes or whatever to this thing just... CREDIT ME

Finally for the long awaited Downloads
I put it here just to make you read all my shit :)
Nuke

Helicopter

THE MOST IMPORTANT PART OF THIS POST, THR CREDITS

Vortex - calculatuons for the 3d camera for the helicopter script
Krulcifer - My friend IRL that suggested and supported me with ideas
My math teacher - For teaching me wtf sin and cosin was.




[size=200pt].[/size]
8
Script Releases / Re: Motley's base script
« Last post by Motley on November 11, 2017, 01:55:46 pm »
Awe thanks buddy, I intend to release this source a few more times before I stop and focus on more of being a server owner.



I noticed on player join in the server.nut I accidentally left

Code: [Select]
function onPlayerJoin( pPlayer )
{
Criminal_Join_Process(pPlayer);

Admin_Join_Process(pPlayer);
WriteIniBool(ADMIN_LOCATION + "Accounts/Admin.ini", pPlayer.Name.tolower(), "Access", true);

MessagePlayer( "Welcome to the server nablet! Hope you enjoy the release!", pPlayer, BRIGHT_WHITE );
MessagePlayer( "/heal /armour /wep /skin /mypos /window /pm /airport /flip /fix", pPlayer, GOLD_YELLOW );

}

The WriteIniBool needs to be removed or any players joining the server will be allowed to register as a administrator. I will get around to fixing that.

The servers next objective might be a way to see any in game scores like kills. As well making Vehicle alarms manually. Even if someone extracts it, that will make LU fun :D.
9
Script Releases / Re: Motley's base script
« Last post by ARSEnic. on November 11, 2017, 01:06:09 pm »
Ooooh nice script! Hope to see more scripts coming!
10
Script Releases / Motley's base script
« Last post by Motley on November 11, 2017, 12:46:45 am »
I was plundering on a method to be able to return as a server owner.
I knew there were releases but nothing like what I wanted..

I have taken the time to re code this server at least seven different times trying to find methods that everyone will understand, from someone new. To even someone who knows what there doing.

What's so special about this release? Nothing! It's just a starter, It's easy to read and easy to understand. It's ready for someone to pick up and start adding to it!

The server uses the INI file system as well hashes.

Players do not have accounts in this release but Administrators do.

The server as stated uses hashes! The hashes were used for a write invalid command script I shared in the past, And it also uses Theremins save location, go to location system.

This server based off of MessAbout server. Kuddos to that small iconic release, I felt like a touch of messabout in this server would of been an interesting starter.

The server is ready to go only one issue..
Everything is being released except for what I am aloud to. the server executable is missing, as well modules etc. I replaced what I am not aloud to release with text files. So anyone new etc can find them and just replace them. easy, at least I thought it would be helpful!

Also to be an admin just remove my name in the ini file with your name, you need to not have any uppercases in your saved name. You can use upercases in game just not in the save file "Fix for clan tags breaking ini".

once you do that you can now you the register command /register [password]

Initial release

Open source beta server 0.1
http://www.mediafire.com/file/2vv88xbytq9tlt2/Motley%27s+Base+Script.zip

If you find any bugs please report them
Pages: [1] 2 3 ... 10
© Liberty Unleashed Team.