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
1  Scripting / Script Snippets / Buy Heal/Armour on: May 12, 2018, 11:05:48 pm
As the title suggests you can buy a heal (Health = 100%) or Armour.

Adapt this to your script however you want to, change 5000/8000 if you think it's too much or too little

Code: [Select]
else if ( szCommand == "heal" ) {
if ( pPlayer.Health != 100 && pPlayer.Cash >= 5000)
{
pPlayer.Health = 100;
pPlayer.Cash -= 5000;
MessagePlayer( "Purchased a heal for $5000. Remaining cash: $" + pPlayer.Cash + ".", pPlayer);
}
else if ( pPlayer.Health == 100)
{
MessagePlayer( "You already have full health!", pPlayer);
}
else if ( pPlayer.Cash < 5000)
{
MessagePlayer( "You don't have enough money!", pPlayer);
}
}

else if ( szCommand == "armour" || szCommand == "armor" ) {
if ( pPlayer.Armour != 100 && pPlayer.Cash >= 8000)
{
pPlayer.Armour = 100;
pPlayer.Cash -= 8000;
MessagePlayer( "Purchased armour for $8000. Remaining cash: $" + pPlayer.Cash + ".", pPlayer);
}
else if ( pPlayer.Armour == 100)
{
MessagePlayer( "You already have full armour!", pPlayer);
}
else if ( pPlayer.Cash < 8000)
{
MessagePlayer( "You don't have enough money!", pPlayer);
}
}
2  Liberty Unleashed / Liberty Unleashed Chat / Re: Why not make LU open source? on: January 27, 2017, 08:08:02 am
Also the LU source will be always private, because there are good and bad people in the world, and the bad people can use the code to fuck us and also take credits.

I have never understood this argument for keeping software closed source. Yes, there are bad people who will look at the code to find exploits. But what does it matter? #1: There are already people who find exploits in closed source software. There are tons of exploits discovered nearly daily for Windows and MS Office, both of which are closed source software. Keeping it closed won't prevent anyone who is determined from finding a vulnerability. People have already found nasty exploits for LU in spite of it being closed source. #2: The good guys will submit a patch for said exploit and distribute it to server owners and players.

As for taking credit I have honestly only seen this twice in the open source community and both times it was found out pretty quickly and the projects were shut down.

As for the "half-assed mods", its easy enough to avoid them.

Personally I would love to see an open source LU, it seems like a really cool concept to me. But I know it'll more likely than not never happen.
3  Liberty Unleashed / Liberty Unleashed Chat / Re: Liberty Unleashed Cops 'n' Robbers (Community Project) on: April 10, 2016, 05:29:38 am
I have a couple of things to say, the first thing is: 1. Did you test the code already? I'm asking it because I see something which doesn't convince me (I'll tell what later when I'll try the code myself) 2. You defined a variable just not to use it 3. My squirrel isn't good either but I'd like to try to help accordingly to my possibilities 4. Since this is a community project, why not using something like Collabedit instead of GitHub?


1. No I didn't test the published code when I published it but I fixed some things. It's probably the onPlayerEnteringVehicle you noticed, right? I changed it to onPlayerEnteredVehicle in the new script so it's not weird.

2. I fixed that.

3. Thanks!

4. I dunno, GitHub seemed better but I set up a CollabEdit. http://collabedit.com/kuuyj
4  Liberty Unleashed / Liberty Unleashed Chat / Re: Liberty Unleashed Cops 'n' Robbers (Community Project) on: April 10, 2016, 03:53:27 am
This looks like a very promising project, I will be keeping an eye on it from now on, this could be the revival of LU that many have been hoping for!

Well, I wouldnt go as far as to say it will revive LU, but I think (and hope) it will teach some new people about Squirrel, how it works, and I hope it will also have the community engage in a project. ;D
5  Liberty Unleashed / Liberty Unleashed Chat / Liberty Unleashed Cops 'n' Robbers (Community Project) on: April 10, 2016, 01:32:37 am
Hi there, everyone!

Today I am making this in hopes that the community of Liberty Unleashed will find it useful.

It's called Liberty Unleashed Cops and Robbers, and as implied, it's a cops and robbers server. There is really nothing done yet, and a LOT of things are going to be a buggy mess because I am not very good at Squirrel. (Of course I'll fix any bug I see, but yeah.)

There is really nothing yet except a very basic, bare-bones system (sorry, I made the initial script in about 10 minutes.) but I'll try to contribute things every day. Anybody is free to add a pull-request or make suggestions in this topic. I will try my best to add everything. This project will be open-sourced from its initialization, all the way until the script is completely finished.

https://github.com/yoshiandmario1/lu-cnr

COLLAB EDIT: http://collabedit.com/kuuyj

Please add suggestions below, or if you can, add a pull-request! It'd be really helpful!

Current features:
-Very basic wanted level system.
-3 commands: /wanted, /cmds, and /ver.
6  Servers / General Server Chat / Re: Requesting a ban from the masterlist on: April 09, 2016, 11:45:18 pm
Ah just forget it.
7  Liberty Unleashed / Liberty Unleashed Chat / Re: The end of LU? on: April 09, 2016, 11:11:08 pm
What I think we need to do is start some community projects. People leave mostly due to lack of servers. There are barely any servers (as of right now, only 6 servers are joinable) which is why the players are leaving.

We need to make a few gamemodes. Something like: Stunting, Cops and Robbers, Roleplay, etc. Those are the most popular gamemodes on SA-MP. I am willing to help everyone host (for free) and even code some things! Though my squirrel scripting is kind of rusty because I haven't made a gamemode in like a year.
8  Liberty Unleashed / Suggestions / Re: Ip connect on: April 09, 2016, 11:01:50 pm
If you mean a server that only plays single-player with no multiplayer interactions, that would defeat the purpose of LU.

Sorry i know this topic hasn't been replied to in 120 days but i figured i must say I think they mean synced single-player missions  and peds. Basically multiple single player.

It's a really cool concept. Again I remember some guy on GTAforums was developing a multiplayer single player for GTA SA. He got pretty far, in fact i remember there was a vid showing police and pedestrians being synced as well as the first few missions working. It only allowed like 6 players max but it was pretty cool. Unfortunately he had a huge flame war with several staff members on GTAForums and got himself permabanned, so he gave up on it.

It's a cool concept but it's really, really hard since syncing pedestrians to EVERYONE requires a massive amount of data. Though, they managed to do it really well with GTA 5 Online, so maybe it's not as unrealistic as it once sounded.
9  Liberty Unleashed / Liberty Unleashed Chat / Re: The end of LU? on: April 09, 2016, 08:57:18 am
No.. not the end.. The only reason its the end is because nobody is doing anything to help gather people to the community..

Lets do something about it! Maybe have a famous youtuber or twitch streamer play the mod?
10  Liberty Unleashed / Suggestions / Re: SinglePlayer Missions on: November 07, 2015, 04:24:07 am
I remember a year or so ago some guy was working on syncing the single player missions and pedestrians in GTA San Andreas.

He actually got pretty far and he managed to get a few NPCs synced and the missions as well, and he had a video of it a long time ago.

However both the mod and the video were deleted from GTA Garage and it seems as though the owner is banned from GTA Forums as well.. so I don't really know what happened, but I'm going to assume the project is done for.
11  Liberty Unleashed / Suggestions / Re: LU for android on: November 04, 2015, 11:55:39 pm
only way possible would be to get a rooted phone. and install a emulation of Windows. then you could use exe files. then maybe a keyboard app . then your better off using a controller. which will make your player slide from another players game. this method is only good for admins. id explain more but about to clock into work...

Windows emulation on android is extremely slow. Even something as minimal as a compact Windows 98 cannot run at acceptable speeds, let alone XP with GTA 3 installed. It would be extremely choppy, slow, and laggy, and thats if GTA 3 would even start (which I doubt it would since the only decent emulator that runs XP on android is qemu, and it has only like 4 emulated graphics driver choices and they're all crap).

What I think would be the best thing to do would be to get a remote software like TeamViewer onto your PC, download the app on your phone, and connect from there. GTA 3 on Android's code is almost entirely different, and it's going to be even more different because the code that GTA 3 on Android uses was an older build of GTA 3 (not 1.1).

tl;dr It's almost impossible that LU support will come for Android.
12  Liberty Unleashed / Support / Re: What ports do I have to forward for LU windows server? on: September 27, 2014, 06:20:02 am
- moved 2 support forum -
Kind of hard to move it when you can't move topics, isn't it? :D
Actually I think he was asking a question about his server and he edited it to say "moved to support forum". I forget what he was asking though
13  Liberty Unleashed / Liberty Unleashed Chat / Custom guns on: September 25, 2014, 03:21:01 am
Hello all

I know it is possible in VC-MP 0.4 to add custom weapons to the game.

However is it possible to add custom weapons to Liberty Unleashed?

Thanks  ;D
14  Liberty Unleashed / Liberty Unleashed Chat / Re: whole lu hacked on: April 01, 2014, 12:49:44 am
It seems this thread has turned into a gigantic flame war.... The ironic thing is, this exploit isnt going to kill LU. Only few people at the moment knows how to perform the bug. Not only that this bug is easy to fix, unless you use client scripts, really... So no. LU isnt screwed/dead because of this exploit because of how ridiculously easy it is to fix... A fix has been posted on the thread. Until the update comes out just dont use client scripts on ur servers :) Easy simple and good!  ;D
15  Liberty Unleashed / Support / Re: GTA3CNR is screwed? on: March 29, 2014, 06:30:48 am
I know, i will add you on Skype. Just tell me your name!
Skype is yoshiandluigi3 It would be easier if we used the TeamViewer but i'll use skype :D just add.
Pages: [1] 2 3 4
© Liberty Unleashed Team.