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 ... 18
1  Scripting / Script Snippets / Re: Inpoly [Command] on: September 09, 2018, 08:05:33 pm
Version two:

Code: [Select]
function onPlayerCommand( player, cmd, text )
{
    if (cmd == "cp" ) {
      if (text) {
        Create_Poly(player, text)
      }
    }
   
}
local x1_ = 0, y1_ = 0, x2_ = 0, y2_ = 0, x3_ = 0, y3_ = 0, x4_ = 0, y4_ = 0;

function Create_Poly(player, size) {

    x1_ = player.Pos.x, y1_ =  player.Pos.y, x2_ = player.Pos.x, y2_ = player.Pos.y, x3_ =  player.Pos.x, y3_ = player.Pos.y, x4_ =  player.Pos.x, y4_ =  player.Pos.y;
    size = size.tointeger()
    //North East
    x1_ += size;
    y1_ += size;

    // Display the positions on the radar
    CreateClientBlip(player, BLIP_NONE, Vector(x1_, y1_, -1));
   
    //South East
    x2_ += size;
    y2_ -= size;

    // Display the positions on the radar
    CreateClientBlip(player, BLIP_NONE, Vector(x2_, y2_, -1));

    // South West
    x3_ -= size;
    y3_ -= size;

    // Display the positions on the radar
    CreateClientBlip(player, BLIP_NONE, Vector(x3_, y3_, -1));

    // North West
    x4_ -= size;
    y4_ += size;

    // Display the positions on the radar
    CreateClientBlip(player, BLIP_NONE, Vector(x4_, y4_, -1));

    // Output the poly so it can be copied and pasted
    print("InPoly(player.Pos.x, player.Pos.y, "+x1_+", "+y1_+", "+x2_+", "+y2_+", "+x3_+", "+y3_+", "+x4_+", "+y4_+"); " );
}
2  Liberty Unleashed / LU Clans / Re: [TW] The Warriors on: August 16, 2018, 05:19:47 am
What VCMP servers do you play  ;D ??? :-X
3  Liberty Unleashed / Liberty Unleashed Chat / Re: Guess whos back on: March 24, 2018, 10:58:43 pm
You replying shows that you care ^_^.

As a member of the community, I want to thank you from all of us for staying active!!
Thank you  8)
4  Liberty Unleashed / Liberty Unleashed Chat / Re: Guess whos back on: March 24, 2018, 02:30:10 am
You never finished your sentence and posted a random link. Who are we talking about, and why did they leave?
5  Servers / General Server Chat / Re: Im happy I finally registered on: February 12, 2018, 09:05:24 am
Wait, you said you were Claude at one time ???

Are you trying to do what I'm pretty sure your trying to do? I mean Claude technically is talented.. So who knows :o.

I hope you didn't mean this :D
6  Scripting / Script Help / Re: Does anyone have any money script? on: February 12, 2018, 04:01:25 am
Mr Damage is banned I think...
7  Servers / General Server Chat / Re: Im happy I finally registered on: February 03, 2018, 04:46:52 am
Claudia Speed..

Tell Claude:

Get to the Payphone in Red light district
8  Liberty Unleashed / Support / Re: Why masterlist dies? on: January 01, 2018, 03:17:36 am
This bug doesn't really exist anymore. When it did your LU browser would become unresponsive. Try refreshing it :)
9  Scripting / Script Snippets / Hud radar control 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 ;)
10  Scripting / Script Releases / Re: Motley's base script 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.
11  Scripting / Script Releases / Motley's base script 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
12  Liberty Unleashed / Liberty Unleashed Chat / Re: LU servers unofficial Discord on: November 08, 2017, 11:19:57 pm
Hi and welcome to the LU servers unofficial Discord" originally created by Theremin!

The servers main goal was to make it more tied to the in-game activity hopefully, as well to bring in server owners.

Now there will be some changes taking place within this server since I am currently the new owner at this time.

I will be personally reaching out to current server owners that we have heard about, or never heard about. I actually happen to know majority of all the server owners contact info ;), It's going to be quite the challenge bugging these individuals ;D. Some of these individuals haven't been heard of. or haven't spoke out in ages!



Something new is also going to take place, and will take a serious amount of work, I will be reaching out to all of the clans who where once part of LU. You guys and girls will have your own channel for each individual clan, as well anything else you might need. Random example: adding a application to clan. Whatever your clan needs it will happen within reason ;).



I would also like to encourage any LU members that were banned on liberty-unleashed.co.uk to join the server, I believe in giving people chances ;).

We are not out to get you wrongfully! So please be kind to the community we are building back up and treat us with the same respect!!

We encourage you to possibly help us in any way if you are able to ;).



Please keep in mind this Discord is based off of LU servers and activity going along within them.

I'm putting a lot of heart into this you guys so please be nice
13  Scripting / Script Snippets / Write invalid commands on: October 13, 2017, 11:13:11 pm
So I created this a long time ago for fun. You must make sure you return all of your commands true of course or return 1;, I'm assuming you know the setup of proper commands...

I wasn't going to release it, But when I noticed there are commands that even I wish I had, And they were getting written I knew I should release it lol.


The objective of this script is to help you help the LU community, Maybe you have spawncar cmds, but there typing only 'v', or maybe they want a 'heal' command as well 'armour'. I seriously didn't know how useful this was going to be. And I hope it helps you to ;)

I used hashes as I didn't think much of it when I wrote it... I haven't even touched it since until attempting to modify it for a release

My Hashing file has it's own directory, Make sure to modify it!

The hashing system

Code: [Select]
/*
Hashes are only used for simple stuff.
In this case writing invalid commands to better our system in time.
*/
const HASH_TABLE_LOCATION = "Hashing/Hashes/";

function onScriptLoad()
{
LoadHashes();

print("The hash tables have been loaded!");
}

function onScriptUnload()
{
SaveHashes();
}
function CreateHashes()
{
hsh_Cmds <- HashTable("CMD");
}

function SaveHashes()
{
// This is where we will be saving the hash files
hsh_Cmds.Save("Scripts/" + HASH_TABLE_LOCATION + "INVALID_COMMANDS.hsh" );
}

function LoadHashes()
{
// This is where we are going to be loading the hash files
// First we need to create them
CreateHashes();

// And then load them
hsh_Cmds.Load("Scripts/" + HASH_TABLE_LOCATION + "Hashing/Hashes/INVALID_COMMANDS.hsh" );
}

And Command usage, You should look into VBS on Commands if you need help with this.

Code: [Select]
/* System Commands */
function onPlayerCommand( pPlayer, szCommand, szParams )
{
if (DEATH_MATCH_COMMANDER( pPlayer, szCommand, szParams )) return true;

if (ADMIN_AUTHORITY_COMMANDER( pPlayer, szCommand, szParams )) return true;

MessagePlayer("The command /"+szCommand+" does not exist", pPlayer, 255, 0, 0);

Write_Invalid_Command( szCommand );

return 1;
}

function Write_Invalid_Command( szCommand )
{
local Invalid_Cmd = hsh_Cmds.Get( "[COMMAND] " + szCommand );

if ( !Invalid_Cmd ) hsh_Cmds.Add( "[COMMAND] " + szCommand, 1 );
else
{
hsh_Cmds.Inc( "[COMMAND] " + szCommand, 1 )
}

SaveHashes();
}

I'm assuming you know how to code with releasing this..

If you are stuck with it feel free to ask me for help!
14  Scripting / Script Snippets / Re: Stats Script for Newbie! on: October 13, 2017, 02:03:27 am
:D You should make a cool gui for all of this, Default console client box only shows like 11 or less lines.

This would help with a nice template

http://forum.liberty-unleashed.co.uk/index.php/topic,2108.0.html 
looks like this
15  Liberty Unleashed / Support / Re: Why masterlist dies? on: August 07, 2017, 12:33:57 pm
Sometimes, I deal with it.

I typically just say F it and use the history tab until the masterlist starts working right again
Pages: [1] 2 3 ... 18
© Liberty Unleashed Team.