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 ... 5 6 [7]
91  Liberty Unleashed / Liberty Unleashed Chat / Re: Expectations on: February 16, 2013, 11:50:01 am
Nope! Problem in ping. Your hackdetector isn't stable:C
92  Liberty Unleashed / Liberty Unleashed Chat / Re: Expectations on: February 16, 2013, 05:51:50 am
6) Your answer
I expect from myself to update anti speedhack. So in theory, nobody will be able to hack race results anymore.
Done.
Done? It's so buggy. It's detect hack on players with high ping. Play on server and u'll see bugs.
93  Liberty Unleashed / Liberty Unleashed Chat / Topic about gamemodes on: February 14, 2013, 07:54:54 pm
Why servers like Crime City, lolmortuary(FreeRoam) more popular, then Vetal's server(Race) or gta.cz , which more interesting? And what gamemode interesting for you?
94  Liberty Unleashed / Liberty Unleashed Chat / Re: Good Bye all player GTA on: February 12, 2013, 05:14:24 am
Sadly to hear it:C
Bye, i hope you'll come back soon  :'(
95  Scripting / Script Help / Re: can't CallServerFunction on: January 20, 2013, 03:47:15 pm
Thx all, i've found problem
96  Scripting / Script Help / Re: can't CallServerFunction on: January 20, 2013, 02:32:57 pm
I've looked at SpawnRamp script and saw this:
Code: [Select]
function SpawnRamp()
{
local veh = g_pLocalPlayer.Vehicle;
if ( veh )
{
local driver = veh.Driver;
if ( driver && driver.ID == g_pLocalPlayer.ID )
{
CallServerFunc( "ramps/ramp.nut", "SpawnRamp", g_pLocalPlayer.ID, false );
}
}
}
Why there is g_pLocalPlayer.ID?
97  Scripting / Script Help / Re: can't CallServerFunction on: January 20, 2013, 12:54:28 pm
Quote
CallServerFunc( "Scripts/TC/Main.nut", "tdm1", plr, plr);


why 2x plr ?

use

Code: [Select]
CallServerFunc( "Scripts/TC/Main.nut", "tdm1", plr );
...

Doesn't work
http://liberty-unleashed.co.uk/LUWiki/Squirrel/Client/Functions/Scripts/CallServerFunc
look at arguments
98  Scripting / Script Help / can't CallServerFunction on: January 20, 2013, 11:31:40 am
Hi again :D
Here is Client-side script
Code: [Select]
local plr = FindLocalPlayer();
CallServerFunc( "Scripts/TC/Main.nut", "tdm1", plr, plr);
And Server-side
Code: [Select]
function tdm1(plr)
{
PagerMessage( plr, "ALLO YOBA ETO TI?", 140, 1, 2 );
}

It's not work. I think problems is in tdm1 function, but idk how to make it work.
99  Scripting / Script Help / Re: visible cursor on: January 17, 2013, 10:27:28 am
Lol. Very easy:D Thank u!
100  Scripting / Script Help / visible cursor on: January 16, 2013, 06:48:41 pm
Hi! How I can make window with visible cursor?
101  Scripting / Script Help / Re: XmlElement.GetAttribute on: December 02, 2012, 02:04:59 pm
This is a part of my script, hopefully you can get the part you need out of it.
Code: [Select]
local XmlDoc = XmlDocument( "Maps/"   Map );
if ( XmlDoc )
{
XmlDoc.LoadFile();
local xmlRoot = XmlDoc.FirstChild( "Map" );
local xmlInfoRoot = xmlRoot.FirstChild( "Info" );
local xmlObjectsRoot = xmlRoot.FirstChild( "Objects" );
local Author = xmlInfoRoot.GetAttribute( "Author" );
local Date = xmlInfoRoot.GetAttribute( "Date" );
local Name = xmlInfoRoot.GetAttribute( "Name" );
local plr = FindPlayer( 0 );
MessagePlayer( "Loading Map "   Name, plr, Colour(0, 183, 235) );
MessagePlayer( "   - Made by "   Author, plr, Colour(0, 183, 235) );
MessagePlayer( "     on "   Date, plr, Colour(0, 183, 235) );
local id = 0, a = true, node = xmlObjectsRoot.FirstChild( "Object" ), LastOb;
while( node )
{
local vPos = Vector( node.GetAttribute( "x" ).tofloat(), node.GetAttribute( "y" ).tofloat(), node.GetAttribute( "z" ).tofloat() );
local vAngle = Vector( node.GetAttribute( "RotX" ).tofloat(), node.GetAttribute( "RotY" ).tofloat(), node.GetAttribute( "RotZ" ).tofloat() );
LastOb = CreateObject( node.GetAttribute( "model" ).tointeger(), vPos );
LastOb.Angle = vAngle;

node = node.NextSibling( "Object" );
}
MessagePlayer( "Finished loading map.", plr, Colour( 0, 255, 0 ) );
CallClientFunc( FindPlayer( 0 ), "ObjectEdit/cmain.nut", "ToggleLoadWindow" );
}

For the XML File:
Code: [Select]
<Map>
    <Info Name="Test" Author="[VU]Thijn" Date="14:47 8-0-2012" />
    <Objects>
        <Object model="1378" x="1305.57" y="-100.05" z="16.3662" RotX="0" RotY="0" RotZ="0" />
<Object model="1378" x="1308.57" y="-100.05" z="18.3662" RotX="0" RotY="0" RotZ="0" />
    </Objects>
</Map>
Thanks so much! You helped me!
102  Scripting / Script Help / XmlElement.GetAttribute on: December 01, 2012, 12:34:19 pm
Hi, guys! I need to get attributes from my xml file. Can u show me it with example?

Kind regards
Pages: 1 ... 5 6 [7]
© Liberty Unleashed Team.