Show Posts
|
Pages: 1 ... 5 6 [7]
|
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.
|
|
|
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: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?
|
|
|
98
|
Scripting / Script Help / can't CallServerFunction
|
on: January 20, 2013, 11:31:40 am
|
Hi again Here is Client-side script local plr = FindLocalPlayer(); CallServerFunc( "Scripts/TC/Main.nut", "tdm1", plr, plr); And Server-side 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.
|
|
|
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.
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:
<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!
|
|
|
|