Show Posts
|
Pages: [1] 2
|
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? function blablabla(nam, val, key) { if(key!="a54u34bj3") return; ... } And call like this: 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)
/* 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
...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...
|
|
|
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. /* 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.
UnloadScript("Game"); LoadScript("Game"); and
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?
|
|
|
|