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
1  Scripting / Script Snippets / Re: Prepare your server for Christmas !! :) on: December 28, 2014, 09:58:58 am
x="135.97" y="-931.8" z="27.09"
please


:) And here it is:
(I couldn't move it to the position you gave because there is another object, and it makes the Christmas Tree look bad)



Code: [Select]
<object x="151.329" y="-931.764" z="22.9636" anglex="0" angley="0" anglez="0" model="1436" />
<object x="151.981" y="-923.612" z="25.4194" anglex="0" angley="0" anglez="178.0000166967" model="1250" />
<object x="159.896" y="-931.534" z="25.4194" anglex="0" angley="0" anglez="87.999958854204" model="1250" />
<object x="152.012" y="-939.365" z="25.4359" anglex="0" angley="0" anglez="1.9999888229816" model="1250" />
<object x="143.338" y="-931.387" z="25.4194" anglex="0" angley="0" anglez="-92.00005254736" model="1250" />
<object x="151.568" y="-932.353" z="33.3031" anglex="0" angley="0" anglez="0" model="1435" />
<object x="151.277" y="-931.858" z="36.9708" anglex="0" angley="0" anglez="0" model="1434" />
<object x="151.329" y="-931.764" z="22.9636" anglex="0" angley="0" anglez="-166.00006614298" model="1436" />
<object x="151.273" y="-931.894" z="43.8223" anglex="0" angley="0" anglez="0" model="1320" />
<object x="151.273" y="-931.894" z="43.4008" anglex="0" angley="0" anglez="0" model="1320" />
<object x="151.273" y="-931.894" z="44.2222" anglex="0" angley="0" anglez="0" model="1320" />
<object x="151.566" y="-930.306" z="38.4902" anglex="0" angley="0" anglez="0" model="1268" />
<object x="153.672" y="-931.218" z="35.8927" anglex="0" angley="0" anglez="-76.000103310471" model="1268" />
<object x="154.729" y="-933.115" z="31.6491" anglex="0" angley="0" anglez="-126.00012026132" model="1268" />
<object x="151.166" y="-935.418" z="29.6081" anglex="0" angley="0" anglez="-172.00005425008" model="1268" />
<object x="147.839" y="-933.053" z="31.9677" anglex="0" angley="0" anglez="94.000069925439" model="1268" />
<object x="149.151" y="-928.891" z="29.8674" anglex="0" angley="0" anglez="34.000051741536" model="1268" />
<object x="153.203" y="-929.184" z="32.5572" anglex="0" angley="0" anglez="-22.000001415886" model="1268" />
<object x="155.443" y="-929.638" z="29.5827" anglex="0" angley="0" anglez="-60.00000091507" model="1268" />
<object x="151.157" y="-927.574" z="27.9816" anglex="0" angley="0" anglez="-4.0000133809067" model="1268" />
<object x="149.195" y="-930.28" z="35.3266" anglex="0" angley="0" anglez="34.000051741536" model="1268" />
<object x="152.472" y="-934.99" z="33.0495" anglex="0" angley="0" anglez="-161.99995810156" model="1268" />
<object x="150.054" y="-934.168" z="36.0762" anglex="0" angley="0" anglez="156.00002851062" model="1268" />
<object x="147.38" y="-931.697" z="28.5654" anglex="0" angley="0" anglez="108.00003057125" model="1268" />
<object x="150.215" y="-929.056" z="32.6707" anglex="0" angley="0" anglez="34.000051741536" model="1268" />
<object x="153.634" y="-927.548" z="29.3006" anglex="0" angley="0" anglez="-24.000051334745" model="1268" />
<object x="155.579" y="-932.363" z="27.183" anglex="0" angley="0" anglez="-90.000054184201" model="1268" />
<object x="152.675" y="-933.208" z="38.0205" anglex="0" angley="0" anglez="-154.00003265146" model="1268" />
<object x="148.345" y="-935.169" z="29.5129" anglex="0" angley="0" anglez="156.00002851062" model="1268" />
<object x="148.932" y="-935.943" z="27.0255" anglex="0" angley="0" anglez="156.00002851062" model="1268" />
<object x="148.271" y="-929.507" z="27.1243" anglex="0" angley="0" anglez="34.000051741536" model="1268" />
<object x="153.505" y="-934.756" z="28.7842" anglex="0" angley="0" anglez="-126.00012026132" model="1268" />
<object x="149.885" y="-932.584" z="39.3064" anglex="0" angley="0" anglez="82.000016786236" model="1268" />
<object x="147.887" y="-930.515" z="32.1067" anglex="0" angley="0" anglez="82.000016786236" model="1268" />
<object x="150.156" y="-934.867" z="32.3434" anglex="0" angley="0" anglez="156.00002851062" model="1268" />
<object x="148.439" y="-932.845" z="35.1608" anglex="0" angley="0" anglez="104.00004914606" model="1268" />
<object x="151.449" y="-929.239" z="34.7182" anglex="0" angley="0" anglez="0" model="1268" />
<object x="151.187" y="-927.991" z="30.5374" anglex="0" angley="0" anglez="0" model="1268" />
<object x="155.02" y="-930.518" z="33.1849" anglex="0" angley="0" anglez="-58.000076640226" model="1268" />
<object x="154.41" y="-928.229" z="27.1931" anglex="0" angley="0" anglez="-24.000051334745" model="1268" />
<object x="151.166" y="-935.418" z="29.6081" anglex="0" angley="0" anglez="-172.00005425008" model="1268" />
<object x="152.568" y="-936.007" z="26.9608" anglex="0" angley="0" anglez="-172.00005425008" model="1268" />
<object x="152.885" y="-933.452" z="34.5239" anglex="0" angley="0" anglez="-154.00003265146" model="1268" />
<object x="151.313" y="-933.823" z="33.9051" anglex="69.976084909284" angley="-3.9391396398814" anglez="0.69569012245505" model="1438" />
<object x="151.733" y="-933.571" z="36.2712" anglex="70.394577172734" angley="5.7228551585217" anglez="27.010405325328" model="1438" />
<object x="149.793" y="-932.52" z="37.1829" anglex="89.022918302896" angley="-20.369652610455" anglez="-75.82436989751" model="1438" />
<object x="150.449" y="-930.85" z="36.8172" anglex="84.290308320658" angley="-2.5430919279577" anglez="-134.35366609176" model="1438" />
<object x="150.911" y="-931.495" z="40.6586" anglex="84.290308320658" angley="-2.5430919279577" anglez="-134.35366609176" model="1438" />
<object x="149.519" y="-929.567" z="31.3048" anglex="84.290308320658" angley="-2.5430919279577" anglez="-134.35366609176" model="1438" />
<object x="148.68" y="-931.469" z="33.4983" anglex="82.934455109748" angley="-1.8210552514693" anglez="-110.26840852475" model="1438" />
<object x="148.993" y="-931.054" z="30.4333" anglex="83.58047903155" angley="-3.4729037090215" anglez="-124.18603594786" model="1438" />
<object x="151.406" y="-929.095" z="32.5296" anglex="88.797995102746" angley="0.8036800264413" anglez="-176.47328423057" model="1438" />
<object x="150.088" y="-929.197" z="28.0548" anglex="89.271992191197" angley="1.2492153741489" anglez="-150.47283269234" model="1438" />
<object x="152.368" y="-929.104" z="28.0548" anglex="88.657123275434" angley="0.53622945873079" anglez="171.52891680136" model="1438" />
<object x="153.222" y="-928.94" z="30.5451" anglex="88.567349139659" angley="0.19544349680633" anglez="157.53273795126" model="1438" />
<object x="154.508" y="-931.006" z="30.0706" anglex="89.074816827585" angley="-1.1113036600311" anglez="99.544148889464" model="1438" />
<object x="154.237" y="-931.332" z="34.3201" anglex="71.074934757196" angley="-1.1112394152402" anglez="99.544170095344" model="1438" />
<object x="153.434" y="-932.797" z="33.3117" anglex="76.33135739486" angley="-3.1914001318855" anglez="58.537945585428" model="1438" />
<object x="152.689" y="-934.61" z="30.6045" anglex="69.929774040757" angley="3.6850782603411" anglez="21.347664638854" model="1438" />
<object x="150.329" y="-934.852" z="30.6045" anglex="71.730732048278" angley="-9.218162346739" anglez="-14.514653232783" model="1438" />
<object x="148.19" y="-933.501" z="29.8633" anglex="73.628238543427" angley="-1.9323574816676" anglez="-66.620703264484" model="1438" />
<object x="148.146" y="-933.358" z="27.5327" anglex="73.628238543427" angley="-1.9323574816676" anglez="-66.620703264484" model="1438" />
<object x="150.754" y="-934.774" z="27.4583" anglex="65.329177955063" angley="5.4066339071681" anglez="-2.5815732386631" model="1438" />
<object x="153.909" y="-933.193" z="27.5229" anglex="73.193593554106" angley="-1.0595227993451" anglez="55.63792279853" model="1438" />
<object x="151.414" y="-932.421" z="40.0443" anglex="69.627648986721" angley="0.91591596805893" anglez="13.835415450314" model="1438" />
<object x="151.984" y="-931.329" z="39.3804" anglex="72.966905353935" angley="2.5371572535882" anglez="136.45119131646" model="1438" />
<object x="152.882" y="-930.042" z="35.9512" anglex="72.966905353935" angley="2.5371572535882" anglez="136.45119131646" model="1438" />
<object x="149.855" y="-933.497" z="33.5499" anglex="0" angley="0" anglez="0" model="1366" />
<object x="153.517" y="-933.891" z="32.1715" anglex="0" angley="0" anglez="0" model="1366" />
<object x="154.952" y="-932.554" z="29.4102" anglex="0" angley="0" anglez="-76.000103310471" model="1366" />
<object x="153.207" y="-929.639" z="34.0399" anglex="0" angley="0" anglez="-35.999993428931" model="1366" />
<object x="150.388" y="-928.692" z="31.2292" anglex="0" angley="0" anglez="13.999960639619" model="1366" />
<object x="150.081" y="-930.97" z="38.4449" anglex="0" angley="0" anglez="53.999953726759" model="1366" />
<object x="150.039" y="-936.139" z="28.7039" anglex="0" angley="0" anglez="53.999953726759" model="1366" />
2  Scripting / Script Snippets / Re: Prepare your server for Christmas !! :) on: December 20, 2014, 09:11:35 am
Thanks !! :)

And no, wait for Argonath RPG server for LU and enjoy playing it!
Is there any place where I can see some progress ?
3  Scripting / Script Snippets / Re: Prepare your server for Christmas !! :) on: December 17, 2014, 04:23:23 pm
Nice work... but this multi is dead ;x

Are you talking about old PCs that may lag when this Christmas Tree is on screen ?
Yeah, it may lag... but it should be like this, full of lights.
4  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 );
5  Liberty Unleashed / LU Clans / Re: [PrysmaX] Clan on: October 13, 2013, 11:52:15 am
Good luck with your clan ;)
6  Off Topic / Spam / Re: Screenshot Desktop on: October 10, 2013, 04:13:28 pm
I bet you stuffed all of your spam icons into the New Folder you made just for making a screeny :P

hahaha, I laughed a lot :DD

Somehow that is true, I had 2 folders (with some .txd and .dff files to import in ZModeler) that should be all in just one folder, to avoid the "spam" from my screen.

Btw, nice point, hahaha :D
I was waiting for some questions like "Why you have the taskbar in the left part ? :O"
7  Off Topic / Spam / Re: Screenshot Desktop on: October 09, 2013, 06:52:18 pm
Well, here is my Windows 7 x64 bit Desktop. :)

8  Scripting / Script Help / Re: One timer: Check Vehicles' HP and Players' Z position on: October 09, 2013, 06:31:53 pm
Welcome to Liberty Unleashed, where there are actual useful scripting functions.

I know that Libery Unleashed has more and useful scripting functions than Vice City Multiplayer, but let me explain you why I didn't gave a search for this function "player.RemoveFromVehicle()" in the wiki:

In VC:MP, Pawn has "RemovePlayerFromVehicle(playerid)" function and I used it, but when I moved to Squirrel platform, there was (and it is still not) no function to remove the player from a vehicle, so I thought the respective function from pawn was just a reposition of the player, nothing more. (so not actually a game function for me)
So I started to use "player.Pos = player.Pos;", so that's why I didn't gave a search for "player.RemoveFromVehicle()" in the wiki.

By the way, the function "player.Pos" is bugged in LU because it is setting and the position of the  player's vehicle.
9  Scripting / Script Help / Re: One timer: Check Vehicles' HP and Players' Z position on: October 07, 2013, 03:26:14 pm
I think the function you need is:
Code: [Select]
player.RemoveFromVehicle()

Great, thank you.
In VC:MP is no function like this one. (and I thought that it was not made for squirrel for both games...)
10  Scripting / Script Help / Re: One timer: Check Vehicles' HP and Players' Z position on: October 05, 2013, 03:52:22 pm
I haven't tested it. But try doing player.Vehicle = null;

not work
11  Scripting / Script Help / Re: One timer: Check Vehicles' HP and Players' Z position on: October 05, 2013, 02:16:13 pm
I tried with this event but it didn't worked.. that's why I made my own checker.
But I gave another try and now it works properly :/

Thank you, Thijn :)

But now I have another problem, the player is not ejected. (I think it will work if I will use a timer to eject him, but I want to avoid timers)
12  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
13  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..
14  Scripting / Script Help / Re: What are the parameters of onPlayerKeyStateChange ? on: August 09, 2013, 11:04:58 am
hhmm, I got it somehow, thank you !
15  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 )
Pages: [1] 2 3
© Liberty Unleashed Team.