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
1  Off Topic / General Chat / Re: How many languages do you know? on: December 02, 2013, 02:36:48 am
php, javascript, c++, java, actionscript, squirrel :) + Russian and English :)
2  Liberty Unleashed / Bug Reports / Critical security flaw on: November 25, 2013, 01:28:40 pm
Can I contact with stuff about critical security flaw in LU ?

Using LU server is UNSAFE for a computer, where it running.
3  News and Content / Updates/Changes / Re: Update 0.1.0.14 (09/11/2013) on: November 12, 2013, 05:42:06 am
Nice idea, but you can't add something like that to function "Message". Even if you can and you call some function via client script I can see it.
PM :)

*Using 0.1.0.12 an waiting for 0.1.0.14 onjoin crash fix*
4  News and Content / Updates/Changes / Re: Update 0.1.0.14 (09/11/2013) on: November 12, 2013, 04:56:04 am
Don't you think to add a secure key to all your server functions?

Code: [Select]
function blablabla(nam, val, key) {
if(key!="a54u34bj3") return;
...
}

And call like this:
Code: [Select]
blablabla("winner", 5, "a54u34bj3");
It will protect from custom client scripts hacks. Also you can use a classes. If you don't do it - it will be unsafe and hackable anyway :)
5  Scripting / Script Help / Re: godmode script on: November 11, 2013, 03:36:21 pm
Take this: (client script)
Code: [Select]
/* Immortal mode  ||  Author: ZX_Lost_Soul
Press F11 to become fucking immortal */

local plr=FindLocalPlayer();
local immortal;

function onScriptLoad() {
BindKey(KEY_F11, BINDTYPE_UP, "immortal_mode");
}

function immortal_mode() {
if(!immortal) {
immortal=1;
Message("Now you're immortal!");
} else {
immortal=0;
Message("Now you're earthborn");
  }
}

function onClientHurt(ent) {
if(immortal) return 0;
return 1;
}

function onClientShot(plr, wep, prt) {
if(immortal) return 0;
return 1;
}
6  News and Content / Updates/Changes / Re: Update 0.1.0.14 (09/11/2013) on: November 09, 2013, 10:31:32 pm
Glad to see that LU alive and updtying :)

But images/sounds don't downloading after update. And there is a crash when you join the server at first time.

Can you fix a little bug, please? Cyrillic lowercase letter (letter code: -1) don't works in the game chat and messages, it moves cursor left instead of typing letter. That is upsets Russian players very much(

p.s. And can you tell me, please, how to bind "chat open" on the Enter key instead of T? I can't find it in the Wiki...
7  News and Content / Updates/Changes / Re: Update 0.1.0.13 (08/11/2013) on: November 08, 2013, 04:43:05 pm
And with the server downloads, it is still the old version because i haven't got around to updating the binary yet... If you just run it and type 'checkupdates' it will update itself. Same for the windows server.

If there is "update 0" in the server.conf, command 'checkupdates' don't update anything, just writes that:

Is that normal?) I was thinking that is "auto update check"...

Changing it to "update 1" solves problem)
8  News and Content / Updates/Changes / Re: Update 0.1.0.13 (08/11/2013) on: November 08, 2013, 02:51:46 pm
Bugreport! :)

If you have a last version of MS VC++ 2010 - client don't want to install. It trying to install VC++, can't do that (because you already have one) and cancel installation. You forced to remove VC++ before installation.

And why Linux server, downloaded from main page have version 0.1.0.12 ? It don't works with new client  :-\
9  Scripting / Script Releases / Re: District Name on: November 07, 2013, 08:47:48 pm
Why on earth would you translate names :P


...not all words is the names. And it looks nicer at native language, if it has different alphabet)

Why not have it on onClientRender ?

1. Reason, described by Thijn.
2. If player walks on a district edge, you can see a label flickering - fast changing between two names. That's not good. 2,5 seconds update is optimal.

p.s. If using custom font...
10  Scripting / Script Help / Replace one letter with another in the string on: November 07, 2013, 07:42:58 am
Code: [Select]
txt="Sometext";How to replace a letter in the string? I try:
Code: [Select]
txt[1]=3;
txt[1]='c';
txt[1]="c";
local letter="c";
txt[1]=letter.tochar();
...but nothing works(

Maybe Squirel have analog of str_replace() ?
11  Scripting / Script Releases / Re: District Name on: November 07, 2013, 05:10:40 am
There's command for turn it on without any scripts...
What command?

p.s. Script is better anyway) You can make a translations of district names, for example, and show it on the player's language. You can doesn't show names of some districts. Or stylize color/font/position of this label )
12  Scripting / Script Releases / District Name on: November 06, 2013, 11:52:41 pm
That script displays a name of current district on the left bottom corner of the screen, under radar. Can be useful for RP servers.



That is client script.

Code: [Select]
/* District Name  ||  Author: ZX_Lost_Soul  ||  Free to use
That script displays a name of current district on the left bottom corner of the screen, under radar */

local plr=FindLocalPlayer();
local CurDistrict;

// Initializing
function onScriptLoad() {
DistrictName <- GUILabel(VectorScreen(20, ScreenHeight-45), ScreenSize(100,3), "Welcome");
DistrictName.FontName="Tahoma";
DistrictName.FontSize=18;
DistrictName.TextColour=Colour(255, 123, 0);
AddGUILayer(DistrictName);
NewTimer("district_name_upd", 2500, 0);
}

// District name update
function district_name_upd() {
local pos=plr.Pos;
local dis=GetDistrictName(pos.x, pos.y);
if(CurDistrict!=dis) {
DistrictName.Text=dis;
CurDistrict=dis;
  }
}
13  Scripting / Script Help / Re: Reload Client Scripts on: October 25, 2013, 05:33:29 pm
Thijn, no, it's not.

Code: [Select]
UnloadScript("Game");
LoadScript("Game");
and
Code: [Select]
SendRconCommand("reload_scripts");reload server scripts, but client scripts continues executing. Client scripts reloads only when player join server.

Maybe you use another way to reload scripts?
14  Scripting / Script Help / Reload Client Scripts on: October 25, 2013, 04:55:05 pm
Is that possible to force client scripts update for players? (without leave/join server)

Or not?
15  Scripting / Module Releases / Re: Juppi's MySQL Module (lu_mysql) on: October 25, 2013, 01:10:02 pm
Oh, I'm install 32-bit mysql-libs from Remi repo and now module works :D
Thank you  :)
Pages: [1] 2
© Liberty Unleashed Team.