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  Scripting / Script Snippets / [Client] Nickname hider script on: December 06, 2015, 07:08:55 pm

This is client-side script.

Code: [Select]
StatusNickNameHider <- true;

function onScriptLoad() BindKey(KEY_F1,BINDTYPE_UP,"NickNameHider");

function NickNameHider()
{
if (!StatusNickNameHider)
{
SetNametagDrawDistance(100.0);
StatusNickNameHider = true;
}
else
{
SetNametagDrawDistance(0.0);
StatusNickNameHider = false;
}
}

Thanks for Theremin for example function SetNametagDrawDistance.
2  Scripting / Script Help / How to use SetNametagDrawDistance(?) on: December 05, 2015, 07:00:13 pm
How to use SetNametagDrawDistance(?)
This is client side function.
3  Scripting / Script Help / NewTimer("KickPlayer"... problem in onPlayerConnect on: November 29, 2015, 07:06:32 pm
I have small problem with script. So, when i use such KickPlayer(player); in event onPlayerConnect after some Messages, often Messages are cut. But when i use NewTimer("KickPlayer",125,1,player); after connect on the server, server has crashed. I try NewTimer("TestKick",125,1,player); and lower add function TestKick(player) KickPlayer(player); , but the same effect.
4  Liberty Unleashed / Liberty Unleashed Chat / LU banners now available on game-state.com on: November 14, 2015, 08:21:02 pm
Good news!

Now you can add your server on game-state with nice server stats in image. 4 years waiting... Thanks for LU-DM team for spam and refresh old topic ;)

http://www.game-state.com/forum/viewtopic.php?f=9&t=441&sid=13e576a21a033a60bc57fc8092abd3e5&start=10

Example:

5  Scripting / Script Snippets / Anti SpawnKill by rwwpl on: August 11, 2015, 10:20:47 pm
This is clientside script:

Code: [Select]
AntiSpawnKill <- false;

function onClientSpawn(s)
{
AntiSpawnKill = true;
NewTimer("DisableSK",3500,1);
return 1;
}

function onClientShot(p,w,b)
{
if (AntiSpawnKill) return 0;
else return 1;
}

function DisableSK()
{
AntiSpawnKill = false;
Message("* Anti Spawn Kill disabled!",0,255,128);
}
6  Scripting / Script Help / PutToCar all players in derby problem. on: July 22, 2015, 11:23:14 am
Function:

Code: [Select]
function PutToCar()
{
foreach(ii,p in Players)
{
if (p && InDerby[p.ID])
{
local v = GetClosestVehicle(p);
if (v) p.Vehicle = v;
}
}
}

Error line:
Code: [Select]
if (v) p.Vehicle = v;

Error:

Code: [Select]
<22/07/2015 - 11:02:29>
AN ERROR HAS OCCURED [invalid instance type]

<22/07/2015 - 11:02:29>
CALLSTACK

<22/07/2015 - 11:02:29> *FUNCTION [PutToCar()] Scripts/Glowny/Funkcje.nut line [1239]

<22/07/2015 - 11:02:29>
LOCALS

<22/07/2015 - 11:02:29> [vehicle] INSTANCE

<22/07/2015 - 11:02:29> [p] INSTANCE

<22/07/2015 - 11:02:29> [ii] 1

<22/07/2015 - 11:02:29> [this] TABLE
7  Scripting / Script Help / Which functions do cause crashing a server? on: July 16, 2015, 06:15:21 pm
Which functions or what can cause crashing a server?
8  Liberty Unleashed / Bug Reports / Different size of images in gui on: April 16, 2015, 09:35:19 pm
On server appeared problem concern with screens from gui. Somebody's have normal size of screens, another have larger or often cut too.

Wrzosio :


RwwpL :


Map Image :
9  Scripting / Scripting Discussion / Which is better? XML or ini? on: February 04, 2015, 03:03:04 pm
I have a small question... which is better? XML or ini, for saveloc/gotoloc commands?
10  Scripting / Script Help / Random Player? on: January 18, 2015, 07:05:35 pm
How to create RandomPlayer function? I need this...
11  Scripting / Script Help / Example for SetVehicleHandlingData(??) on: January 11, 2015, 08:18:04 pm
How to use SetVehicleHandlingData(??)

12  Scripting / Script Help / How to block this sign " on nickname on: November 10, 2014, 03:42:14 pm
How to block this sign " on nickname?
13  Scripting / Script Help / .Respawn() doesn't work on: November 06, 2014, 10:19:32 pm
I have problem with .Respawn();

Code: [Select]
else if (c == "respawnall")
{
for(local a = 0; a < GetVehicleCount(); a ++)
{
local vee = FindVehicle(a);
if(vee) vee.Respawn();
}
}

Error:

Code: [Select]
<06/11/2014 - 22:17:19>
AN ERROR HAS OCCURED [the index 'Respawn' does not exist]

<06/11/2014 - 22:17:19>
CALLSTACK

<06/11/2014 - 22:17:19> *FUNCTION [onPlayerCommand()] ... line [2917]

<06/11/2014 - 22:17:19>
LOCALS

<06/11/2014 - 22:17:19> [plrs] 1

<06/11/2014 - 22:17:19> [a] 1

<06/11/2014 - 22:17:19> [veh] NULL

<06/11/2014 - 22:17:19> [i] NULL

<06/11/2014 - 22:17:19> [plr] INSTANCE

<06/11/2014 - 22:17:19> [c] "respawnall"

<06/11/2014 - 22:17:19> [temp] NULL

<06/11/2014 - 22:17:19> [t] NULL

<06/11/2014 - 22:17:19> [c] "respawnall"

<06/11/2014 - 22:17:19> [p] INSTANCE

<06/11/2014 - 22:17:19> [this] TABLE
14  Scripting / Script Help / Where can i use this const? on: October 29, 2014, 05:58:04 pm
Where can i use this const?
Code: [Select]
JOINFAIL_DUPNICK
JOINFAIL_VER
JOINFAIL_GAME
JOINFAIL_BUILD

In onPlayerConnect or onPlayerJoin isn't has return reason. [ onPlayerConnect(player,reason) etc...

and

JOINFAIL_GAME = CRC CHECK?
15  Scripting / Script Help / Mute or disable /me on: October 06, 2014, 04:44:05 pm
How to mute or disable command /me ?
Pages: [1] 2
© Liberty Unleashed Team.