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 4 ... 7
16  Scripting / Script Releases / Re: [Update 29-09] GUI Admin Panel on: October 05, 2014, 04:18:44 pm
There's security flaw in your script. Anybody with client exploit can control the server w/ admin on it.

I suggest to add one more parametr to CallServerFunc. Special key/code, what admin of server receives on join. Or it can be any other check.
17  Liberty Unleashed / Bug Reports / Re: Liberty Unleashed Issues List [0.1.0.16] on: September 24, 2014, 01:53:46 am
  • Colour class still returns just r value, even if you request it g or b or a
  • GetHUDItemEnabled is also bugged and doesn't returns right bool
That's all what I remembered.
Add PARTREASON_RECONNECT (feature #3) (idea by sasha19323)
It doesn't work anymore.
18  Scripting / Script Releases / Re: [Map Editor] Gamesparks' Map Editor on: September 21, 2014, 10:02:08 am
Version for LU >0.1.0.15: click
19  Liberty Unleashed / Support / Re: Request for blocking server - stolen copy on: September 18, 2014, 04:42:22 pm
It WAS LU fault, after 0.1.0.15 update there's no any problems with security (anyway nobody can steal your script). And as I've told before, there's no server in LU with your script.
20  Liberty Unleashed / Support / Re: Request for blocking server - stolen copy on: September 18, 2014, 03:28:05 pm
There's no server in LU, which use your script. I don't have your script anymore. And yes, I used LU server and mine server exploit to steal your script and execute server-side code.
21  Scripting / Script Snippets / Pseudo 3D sound on: August 31, 2014, 03:06:03 pm
This script would be good for Survival/RP gamemodes. You can create it via server(e.g CallClientFunc(plr, null, "PosSound", "track.mp3", Vector(0,0,0), 50); ) or via client(onScriptLoad event or commands). Don't forget to add the sounds in your script.xml file.
Code: ("Client-side script") [Select]
pSounds <- [];

const MAX_RADIUS = 127; //maximal volume
class PosSound
{
  constructor(name, pos, r)
  {
    Pos = pos;
    Name = name;
    Radius = r;
    Sound = ::FindSound(name);
    if (Sound)
    {
      Sound.Open();
      ::pSounds.push(this);
    }
    else
      this.clear();
  }

  function Play()
  {
    if (Sound)
    {
      if (IsPlaying == false)
      {
        Sound.Play();
        IsPlaying = true;
      }
    }
  }
  function Stop()
  {
    if (Sound)
    {
      if (IsPlaying == true)
      {
        Sound.Stop();
        IsPlaying = false;
      }
    }
  }
  function Pause()
  {
    if (Sound)
    {
      if (IsPlaying == true)
      {
        Sound.Pause();
        IsPlaying = false;
      }
    }
  }

  Name = "";
  Pos = Vector(0,0,0);
  Radius = 127;
  Sound = null;
  IsPlaying = false;
}

pPlayer <- FindLocalPlayer();
function onClientRender()
{
  for (local i = 0; i < pSounds.len(); i++)
  {
    local dist = GetDistance(pPlayer.Pos, pSounds[i].Pos).tointeger();
    if (dist <= pSounds[i].Radius)
    {
      pSounds[i].Sound.SetVolume(MAX_RADIUS/pSounds[i].Radius*(pSounds[i].Radius-dist));
      if (!pSounds[i].IsPlaying)
        pSounds[i].Play();
    }
    else
    {
      if (pSounds[i].IsPlaying)
        pSounds[i].Sound.SetVolume(0); //Pause doesn't work properly, so just setting volume to 0
    }
  }

  return 1;
}
PS: Video later today  ;)
22  News and Content / Updates/Changes / Re: Update 0.1.0.16 (06/08/14) on: August 25, 2014, 01:52:26 pm
> Can anyone say wut exploit was? (Addresses [CE], how worked...)
> *13 years, very clever*
23  News and Content / Updates/Changes / Re: Update 0.1.0.15 (02/08/14) on: August 02, 2014, 08:19:09 pm
Another bug: objects from content.xml don't works properly. Angle of objs isn't right.
24  News and Content / Updates/Changes / Re: Update 0.1.0.15 (02/08/14) on: August 02, 2014, 12:37:54 pm
CallServerFunc doesn't work even if i register funcs via RegisterRemoteFunc. Can you exactly explain how to use it?
25  Scripting / Script Snippets / MP3 files detection on: July 17, 2014, 12:28:07 pm
This snippet based on MP3Report.txt file in "mp3" folder. Snippet parse the file and prevent the crash.

Code: ("Client-side script") [Select]
function FileReadLine(f) //f - file
{
local output = "";
local tmp;
while(true)
{
tmp = f.readn('b');
if (tmp != '\n')
{
output += tmp.tochar();
}
else
{
return output;
}
}
}
function onClientCommand(cmd, text)
{
switch(cmd)
{
case "radio":
{
if (text)
{
if (IsNum(text))
{
local id = text.tointeger();
if (id >= 0 && id < 9)
{
PlayFrontEndTrack(id);
}
else if (id >= 9)
{
local f = file("mp3/MP3Report.txt", "r");
local line;
if (f)
{
while(true)
{
local line = FileReadLine(f);
if (typeof line.find("TOTAL SUPPORTED MP3s: ") != "null")
{
local count = line.slice(line.len()-1);
if (count != "0")
{
PlayFrontEndTrack(9);
break;
}
else
{
Message("[#ff0000]No MP3 files have been found");
break;
}
}
}
}
else Message("[#ff0000]No MP3 files have been found");
}
}
}
}
return 0;
}
}
26  Liberty Unleashed / Suggestions / Re: List of suggestions & bugs on: July 17, 2014, 12:21:41 pm
Exception handlers can be created with

Code: [Select]
seterrorhandler();
With one argument being the function to handle errors.


How works?

http://forum.liberty-unleashed.co.uk/index.php/topic,1839.msg10453.html#msg10453
27  Liberty Unleashed / Suggestions / Re: List of suggestions & bugs on: July 16, 2014, 11:36:31 pm
ยท * Event: onServerCrash
Lol, and how do you expect this to work?
It's like requesting a dead person to tell his family he's dead. He can't, he's dead. Same goes with the server. It dies. You'd be happy if it was able to free up some memory before dying.
e.g. Exception Handler
28  Scripting / Script Snippets / Re: Simple reconnected player detect on: June 28, 2014, 06:17:36 pm
I'm not sure why this would work, care to explain?
I've found, that hashes won't be cleaned after /reconnect. If hash already exists there will be an error.
29  Scripting / Script Snippets / Simple reconnected player detect on: June 27, 2014, 08:04:10 pm
Just add this code on onScriptLoad client-side event:
Code: ("Client-side script") [Select]
try
{
      HashTable("lalka"); //Here can be any name of table;
}
catch(e)
{
      //if player has been reconnected
      Message("You have been kicked. Please type /q and join again", Colour(255, 0, 0));
      CallServerFunc(null, "KickPlayer", FindLocalPlayer());
}
This snippet will help you prevent some /reconnect bugs(objects removing etc).
30  Liberty Unleashed / Suggestions / Re: [ Lst ] List of suggestions & bugs on: June 15, 2014, 08:45:15 pm
Here's, anti-debugger code (for anti-trainers and hacks)


Source: http://www.mpgh.net/forum/showthread.php?t=195676
Pages: 1 [2] 3 4 ... 7
© Liberty Unleashed Team.