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]
1  Scripting / Script Snippets / Prepare your server for Christmas !! :) on: December 16, 2014, 10:28:25 pm
I have always created Christmas Trees for vc:mp, but never thought about LU, the place where you are able to create objects since... ever. :D



So, prepare your server for Christmas !! because

I can place it for you anywhere on map, you just need to tell/show me the position, and I will give you the code. ;)



Here is also the code I used as example, you may like it. :P
(place it in ...server/LU/content.xml)
Code: [Select]
<object x="811.183" y="49.4675" z="6.5033" anglex="0" angley="0" anglez="0" model="1436" />
<object x="811.835" y="57.6202" z="8.95901" anglex="0" angley="0" anglez="178.0000166967" model="1250" />
<object x="819.75" y="49.6973" z="8.95901" anglex="0" angley="0" anglez="87.999958854204" model="1250" />
<object x="811.866" y="41.8666" z="8.9756" anglex="0" angley="0" anglez="1.9999888229816" model="1250" />
<object x="803.192" y="49.8446" z="8.95901" anglex="0" angley="0" anglez="-92.00005254736" model="1250" />
<object x="811.422" y="48.8793" z="16.8428" anglex="0" angley="0" anglez="0" model="1435" />
<object x="811.131" y="49.374" z="20.5104" anglex="0" angley="0" anglez="0" model="1434" />
<object x="811.183" y="49.4675" z="6.5033" anglex="0" angley="0" anglez="-166.00006614298" model="1436" />
<object x="811.127" y="49.3375" z="27.3619" anglex="0" angley="0" anglez="0" model="1320" />
<object x="811.127" y="49.3375" z="26.9404" anglex="0" angley="0" anglez="0" model="1320" />
<object x="811.127" y="49.3375" z="27.7618" anglex="0" angley="0" anglez="0" model="1320" />
<object x="811.42" y="50.9261" z="22.0299" anglex="0" angley="0" anglez="0" model="1268" />
<object x="813.526" y="50.0141" z="19.4324" anglex="0" angley="0" anglez="-76.000103310471" model="1268" />
<object x="814.583" y="48.1168" z="15.1888" anglex="0" angley="0" anglez="-126.00012026132" model="1268" />
<object x="811.02" y="45.8138" z="13.1478" anglex="0" angley="0" anglez="-172.00005425008" model="1268" />
<object x="807.693" y="48.1787" z="15.5074" anglex="0" angley="0" anglez="94.000069925439" model="1268" />
<object x="809.005" y="52.3408" z="13.4071" anglex="0" angley="0" anglez="34.000051741536" model="1268" />
<object x="813.057" y="52.0477" z="16.0969" anglex="0" angley="0" anglez="-22.000001415886" model="1268" />
<object x="815.297" y="51.5939" z="13.1224" anglex="0" angley="0" anglez="-60.00000091507" model="1268" />
<object x="811.011" y="53.6577" z="11.5213" anglex="0" angley="0" anglez="-4.0000133809067" model="1268" />
<object x="809.049" y="50.9516" z="18.8663" anglex="0" angley="0" anglez="34.000051741536" model="1268" />
<object x="812.326" y="46.2421" z="16.5892" anglex="0" angley="0" anglez="-161.99995810156" model="1268" />
<object x="809.908" y="47.0635" z="19.6159" anglex="0" angley="0" anglez="156.00002851062" model="1268" />
<object x="807.234" y="49.5348" z="12.1051" anglex="0" angley="0" anglez="108.00003057125" model="1268" />
<object x="810.069" y="52.1757" z="16.2104" anglex="0" angley="0" anglez="34.000051741536" model="1268" />
<object x="813.488" y="53.6836" z="12.8403" anglex="0" angley="0" anglez="-24.000051334745" model="1268" />
<object x="815.433" y="48.869" z="10.7227" anglex="0" angley="0" anglez="-90.000054184201" model="1268" />
<object x="812.529" y="48.0236" z="21.5602" anglex="0" angley="0" anglez="-154.00003265146" model="1268" />
<object x="808.199" y="46.0629" z="13.0526" anglex="0" angley="0" anglez="156.00002851062" model="1268" />
<object x="808.786" y="45.2893" z="10.5652" anglex="0" angley="0" anglez="156.00002851062" model="1268" />
<object x="808.125" y="51.7252" z="10.664" anglex="0" angley="0" anglez="34.000051741536" model="1268" />
<object x="813.359" y="46.4759" z="12.3239" anglex="0" angley="0" anglez="-126.00012026132" model="1268" />
<object x="809.739" y="48.6473" z="22.8461" anglex="0" angley="0" anglez="82.000016786236" model="1268" />
<object x="807.741" y="50.7165" z="15.6464" anglex="0" angley="0" anglez="82.000016786236" model="1268" />
<object x="810.01" y="46.3645" z="15.8831" anglex="0" angley="0" anglez="156.00002851062" model="1268" />
<object x="808.293" y="48.3866" z="18.7005" anglex="0" angley="0" anglez="104.00004914606" model="1268" />
<object x="811.303" y="51.9924" z="18.2578" anglex="0" angley="0" anglez="0" model="1268" />
<object x="811.041" y="53.2409" z="14.0771" anglex="0" angley="0" anglez="0" model="1268" />
<object x="814.874" y="50.7141" z="16.7246" anglex="0" angley="0" anglez="-58.000076640226" model="1268" />
<object x="814.264" y="53.0024" z="10.7328" anglex="0" angley="0" anglez="-24.000051334745" model="1268" />
<object x="811.02" y="45.8138" z="13.1478" anglex="0" angley="0" anglez="-172.00005425008" model="1268" />
<object x="812.422" y="45.2249" z="10.5005" anglex="0" angley="0" anglez="-172.00005425008" model="1268" />
<object x="812.739" y="47.7796" z="18.0636" anglex="0" angley="0" anglez="-154.00003265146" model="1268" />
<object x="811.167" y="47.409" z="17.4448" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="811.587" y="47.6604" z="19.8109" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="809.647" y="48.7114" z="20.7226" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="810.303" y="50.3816" z="20.3569" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="810.765" y="49.7369" z="24.1982" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="809.373" y="51.6653" z="14.8445" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="808.534" y="49.7628" z="17.038" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="808.847" y="50.1781" z="13.973" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="811.26" y="52.1368" z="16.0693" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="809.942" y="52.0345" z="11.5945" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="812.222" y="52.1282" z="11.5945" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="813.076" y="52.2913" z="14.0848" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="814.362" y="50.2256" z="13.6103" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="814.091" y="49.8996" z="17.8598" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="813.288" y="48.4347" z="16.8514" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="812.543" y="46.6221" z="14.1442" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="810.183" y="46.3795" z="14.1442" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="808.044" y="47.7303" z="13.403" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="808" y="47.8739" z="11.0724" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="810.608" y="46.4582" z="10.998" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="813.763" y="48.0392" z="11.0626" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="811.268" y="48.8105" z="23.584" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="811.838" y="49.9026" z="22.92" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="812.736" y="51.1896" z="19.4909" anglex="0.0" angley="0.0" anglez="0.0" model="1438" />
<object x="809.709" y="47.7344" z="17.0896" anglex="0" angley="0" anglez="0" model="1366" />
<object x="813.371" y="47.341" z="15.7112" anglex="0" angley="0" anglez="0" model="1366" />
<object x="814.806" y="48.6781" z="12.9499" anglex="0" angley="0" anglez="-76.000103310471" model="1366" />
<object x="813.061" y="51.5926" z="17.5796" anglex="0" angley="0" anglez="-35.999993428931" model="1366" />
<object x="810.242" y="52.5398" z="14.7689" anglex="0" angley="0" anglez="13.999960639619" model="1366" />
<object x="809.935" y="50.2615" z="21.9845" anglex="0" angley="0" anglez="53.999953726759" model="1366" />
<object x="809.893" y="45.093" z="12.2436" anglex="0" angley="0" anglez="53.999953726759" model="1366" />

And this is the position for the example location: Vector( 823.976, 37.3958, 10.0113 );
2  Scripting / Script Help / One timer: Check Vehicles' HP and Players' Z position on: October 05, 2013, 12:57:48 am
I want to avoid the explosions in my server because them are removing my objects, so I am not using Rocket Launchers and bombs.
But there is another way: Vehicles Way. (one word: "BOOM!!!")
So I removed the posibility to have less than 850.0 hp on a vehicle, but there appear an error everytime a vehicle has under 850.0 hp:

Code: [Select]
AN ERROR HAS OCCURED [the index 'Health' does not exist]
For this "solution" I'm using a timer that calls "CheckVHP" at every 500ms.
By the way, that error doesn't affect the server, but it appears again and again and again.
Somehow I get use with this error.

This is the code:
first try
Code: [Select]
function CheckVHP( )
{
local veh, vhp, v;
local plr, i;
for(v = 0; v < GetVehicleCount(); v++) {
for(local plr, i = 0; i <= GetMaxPlayers(); i++) {
plr = FindPlayer(i);
if(plr) {
if(plr.Pos.z < 28.0 && plr.Spawned) {
plr.Health = 0.0;
}
}

veh = FindVehicle(v);
if(veh) {
vhp = veh.Health;
if(vhp <= 850.0) {
//print(veh);
for(i = 0; i <= GetMaxPlayers(); i++) {
plr = FindPlayer(i);
if(plr) {
if(plr.Vehicle == veh) {
plr.Pos = Vector(plr.Pos.x, plr.Pos.y, plr.Pos.z + 3);
}
}
}
vhp = 1000.0;
veh.Pos = Vector(0,0,0);
veh.Respawn();
}
}
}
}

second try:
Code: [Select]
function CheckVHP( )
{
local veh, vhp, v, plr, i;
for(v = 0; v < GetVehicleCount(); v++) {
for(i = 0; i <= GetMaxPlayers(); i++) {
veh = FindVehicle(v);
plr = FindPlayer(i);
if(veh || plr) {
if(veh && plr) {
vhp = veh.Health;
if(vhp <= 850.0) {
if(plr.Vehicle == veh) {
plr.Pos = Vector(plr.Pos.x, plr.Pos.y, plr.Pos.z+3);
vhp = 1000.0;
veh.Pos = Vector(0,0,0);
veh.Respawn();
} else {
vhp = 1000.0;
veh.Pos = Vector(0,0,0);
veh.Respawn();
}
}
} else {
if(veh) {
vhp = veh.Health;
if(vhp <= 850.0) {
vhp = 1000.0;
veh.Pos = Vector(0,0,0);
veh.Respawn();
}
} else if(plr) {
if(plr.Pos.z < 28.0 && plr.Spawned) {
plr.Health = 0.0;
}
}
}
}
}
}
}

In the second try, I wanted to make it a bit more organized, but it shows the same error, at the same line:

Code: [Select]
vhp = veh.Health;
But how I said, I get used with it.
By the way, I tried to eject the player from vehicle before its respawn because the ped is going with the car to coords 0, 0, 0, but I failed... it is not ejected... I remade (or tried to fix) the script many times, but I couldn't fix it.

I have there and a little script that kills every player that has the Z coord under 29. (don't ask why, I just need it for my server.

So... can someone tell me how to fix it ? And maybe there is a way that removes and that error  about Health.
(Conclusion: I want this function to check vehicles' hp, eject players that are in a vehicle with hp under 850.0, and kill every ped that has Z coord under 29)

With respect,
Seby
3  Liberty Unleashed / Bug Reports / Explosion near object added by you = object removed on: August 19, 2013, 03:27:27 pm
When I was working on my server, I (by a mistake) destroyed a car, and that car was near an object added by me. I was amazed to saw that my object was removed by that explosion.

Then I tried with Rocket Launcher: I shoot in my objects, and them were removed after that :|

Is there any way to fix it ? Because this is really annoying, and I'm about opening my server..
4  Scripting / Script Help / What are the parameters of onPlayerKeyStateChange ? on: August 09, 2013, 09:19:41 am
I need to use onPlayerKeyStateChange, but the wiki doesn't show anything about it, just that it exist.

I'm trying to add info when a player press some buttons.
This is how I did:

Code: [Select]
if(newkeys && "Y") {
But it is not working... and when I press a moveable key of ped, the info appears.
How to fix it ?
( here I use server-side script )
5  Scripting / Script Help / What are the parameters of AddSpawnScreen ? on: August 05, 2013, 12:30:31 pm
Hi all ! :)

I decided today to create a LU server because I have a good idea in my mind by months.

So... what are the parameters of AddSpawnScreen ?

The wiki doesn't have any example there about it.( here is a link )
6  Liberty Unleashed / Suggestions / Importing new collision for gta3's map. on: March 07, 2013, 09:53:03 am
These days, I just tested (again) the GTA:Liberty City (mod for Vice City that use gta3's map and other stuff) and I saw how the objects are more solid ! (like the roof, it have collision, so you can stay on it)

I think that importing the GTA:LC's map's collision in LU is a good idea.

I will show you some photos:









PS: I'm asking if this interior exist in gta3 too, or it is just in San Andreas ?!
7  Off Topic / General Chat / Happy New Year ! :) on: December 31, 2012, 07:57:16 pm


Happy New Year !

I hope you will have a new good year :)

Good Bye 2012 ....::::....::::.... Welcome 2013 !
8  Liberty Unleashed / Suggestions / The posibility to can change a vehicle model on: July 25, 2012, 11:13:24 pm
I want to replace an vehicle with another vehicle ...

For example, I want to replace the original Infernus with an ... Chevrolet .



This can attract more players . The old vehicles are too .... old .
New vehicles, more fun.

PS: Maybe we will can add a bike  ;)
9  Liberty Unleashed / Liberty Unleashed Chat / My First Video on: August 16, 2011, 11:22:11 pm
I posted my first Video in Media xD

Liberty City -Another Day-

Liberty Unleased -Another Day-


Sorry for bad quality.

Have Fun!
10  Scripting / Scripting Discussion / What are the angle of object ? on: August 12, 2011, 09:52:03 am


what are angles here ?

(anglex, angley, anglez)

I put the numbers from Rotation.

First Box = nothing (i think).

next is anglex , next is angley, next is anglez ... (i think) . But not work :( the object not inclined . why ?

What are the angles ?

Code: [Select]
<object x="-1213.96" y="-729.999" z="1065.3" anglex="-15.00" angley="0.00" anglez="15.00" model=2826 />
11  Liberty Unleashed / Suggestions / New Sugesstions on: August 09, 2011, 11:56:35 pm
Work to edit server with Pawno !

NPC BOT, AttachObjectToVehicle, AttachObjectToPlayer.

PS: Animations, Particle. (Fire, Water)
12  Liberty Unleashed / Support / PROBLEM - Please Help Me ! on: August 08, 2011, 11:08:58 pm
Im new here  ;D . I want to try Liberty-Unleashed, and i copy the gta 3.

i install the client and, when i try to connect on server he say: Need version 1.1 for runing the LU !

I get and the GTA 3 1.1 Patch, and when i try to install he don't know my gta3.exe version....  ???

please help, i want to test it !  ::)

PS: Im sseebbyy from VC:MP Forum.
Pages: [1]
© Liberty Unleashed Team.