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 Help / Re: .Respawn() doesn't work on: November 07, 2014, 07:57:51 pm
As Vortrex said...

Code: [Select]
Vehicles <- { };

function onServerStart ( ) {

local count = 0;
while ( count <= MAX_VEHICLES ) {

if ( FindVehicle ( count ) != null ) {

Vehicles [ count ] <- FindVehicle ( count );
}

count ++;
}
}

cmd:

Code: [Select]
if ( c == "respawnall" ) {

foreach ( ii, iv in Vehicles ) {

if ( FindVehicle ( ii ) == null ) continue; // jump

Vehicles [ ii ].Respawn ( );
}
}
2  Scripting / Script Help / Re: .Respawn() doesn't work on: November 06, 2014, 11:48:24 pm
Code: [Select]
for(local a = 0; a < GetVehicleCount(); a ++)
to

Code: [Select]
for(local a = 0; a < ( GetVehicleCount() - 1 ); a ++)
3  Liberty Unleashed / Bug Reports / Re: Liberty Unleashed Issues List [0.1.0.16] on: November 02, 2014, 01:03:20 am
Works with setted camera matrix
FindObject ( i ).AttachPlayerCamera ( instance plr player );
Is it so hard to make this function by yourself?

Yeah, move LookAt with Mouse
4  Liberty Unleashed / Bug Reports / Re: Liberty Unleashed Issues List [0.1.0.16] on: November 01, 2014, 12:20:40 am
Code: [Select]
FindObject ( i ).AttachPlayerCamera ( instance plr player );
PlaySoundFromURL ( string URL, optional instance player );

FindPlayer ( i ).Angle = int; // Fix?
5  Scripting / Script Help / Re: Where can i use this const? on: October 29, 2014, 06:10:28 pm
JOINFAIL_GAME = Entering with GTA3 and the server have VC or SA
6  Scripting / Script Snippets / Speedhack detection on: October 19, 2014, 08:53:41 pm
Code: [Select]
iTicks <- GetTickCount ( );
sBoolCalled <- false;
Cheating <- 0;

const MAX_SPEEDHACK_CHEAT_ATTEMPTS = 5;

function onClientRender ( ) {

local ticks = ( GetTickCount ( ) - iTicks );

if ( ticks > 1070 && ticks <= 2000 && sBoolCalled == false ) {

if ( Cheating >= MAX_SPEEDHACK_CHEAT_ATTEMPTS ) {

CallServerFunc ( "Some/Script.nut", "SomeFunction", FindLocalPlayer ( ) );

sBoolCalled = true;

return;
}

Cheating ++;
}

iTicks = GetTickCount ( );
}

Code tested and working.

Edit [20/11/2014]: Forgot add the last line.
7  Liberty Unleashed / Bug Reports / Re: Liberty Unleashed Issues List [0.1.0.16] on: October 17, 2014, 10:02:41 pm
Code: [Select]
FindLocalPlayer().WeaponAmmo // No updates until you change of weapon
FindLocalPlayer().Ping // Updates slowly
FindLocalPlayer().Vehicle.Collidable // Bugs with sync (the vehicle is more and more big when you drive or collides with another vehicle

Edit:

Event or bool to player when him is AFK
Posibility of fast spawn
Posibility of replace DFF/TXD/COL/IDL/CFG...
Posibility to play URL as MP3
Pages: [1]
© Liberty Unleashed Team.