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 Menuclass IInventoryTab
{
Container = null;
Item = null;
Value = null;
constructor (parent, position_reference = null, item = "", value = "")
{
local _this = this;
this.Container = GUIWindow(VectorScreen(0, 0), VectorScreen(280, 32), Color(0, 0, 0, 0))
.CRemoveFlags(GUI_FLAG_SCROLLABLE | GUI_FLAG_WINDOW_TITLEBAR | GUI_FLAG_WINDOW_CLOSEBTN | GUI_FLAG_WINDOW_RESIZABLE | GUI_FLAG_SHADOW | GUI_FLAG_BORDER)
.CAddFlags(GUI_FLAG_MOUSECTRL)
.SetParent(parent)
.On("HoverOver", function () { _this.Container.Color = Color(255, 255, 255, 192); })
.On("HoverOut", function () { _this.Container.Color = Color(0, 0, 0, 0); });
if (position_reference != null) this.Container.Insert(InsertLocation.Below, position_reference);
this.Item = GUILabel(VectorScreen(0, 0), Color(200, 200, 200), item)
.SetParent(this.Container)
.SetTypeface("lato", 11, Color(200, 200, 200))
.Float(FloatLocation.CenterLeft)
.Offset(VectorScreen(8, 0));
this.Value = GUILabel(VectorScreen(0, 0), Color(200, 200, 200), value)
.SetParent(this.Container)
.SetTypeface("lato", 11, Color(200, 200, 200))
.Float(FloatLocation.CenterRight)
.Offset(VectorScreen(-8, 0));
}
}
.On("HoverOver", function () { /*_this.Container.Color = Color(255, 255, 255, 192);*/ })
.On("HoverOut", function () { /*_this.Container.Color = Color(0, 0, 0, 0);*/ });
player.Kills = 10;
++player.Kills;
if (player.Kills == 1000) player.Cash += 100000;
foreach (routine in ::Routines)
{
routine.Execute();
}
Routine(function ()
{
Console.Print("Hi");
}, 1000, 2);
local hello = "Hello";
Routine(function ()
{
Console.Print(hello);
}, 1000, 2);
local routine = Routine(...);
Exec("Creating custom events", function ()
{
SqCore.On().CPlayerRequestSpawn <- SqCreateSignal();
SqCore.On().CPlayerSpawned <- SqCreateSignal();
});
SqCore.On().CPlayerRequestSpawn.Connect(function (player)
{
player.Message(MessageType.Information, "V0t? U Request Spown?");
SqCore.SetState(false);
});
local last_state = SqCore.GetState();
SqCore.SetState(1);
SqCore.On().CPlayerRequestSpawn.Emit(player);
local return_state = SqCore.GetState();
SqCore.SetState(last_state);
if (return_state == false || return_state == 0) return;
It doesn't feel much like returning for some reason...skin.position = Vector3(stmt.GetValue("position_x"), stmt.GetValue("position_y"), stmt.GetValue("position_z"));
print(skin.position);
[USR] 0.000000,556.091003,11.098300 player.StartStream();
player.StreamInt(CLIENT_STREAMS.SelectClass);
player.StreamByte(1);
player.FlushStream(true);
player.StartStream();
player.StreamInt(CLIENT_STREAMS.UpdateClass);
player.StreamString("Sasuke");
player.StreamString("Sakura Chan");
player.FlushStream(true);
function Server::ServerData(stream)
{
local identifier = stream.ReadInt();
switch (identifier)
{
case ServerDataType.SelectClass:
Binarify(stream.ReadByte()) ? SpawnScreenLabel.Create() : SpawnScreenLabel.Destroy();
break;
case ServerDataType.UpdateClass:
SpawnScreenLabel.LabelValueTeam = stream.ReadString();
SpawnScreenLabel.LabelValueSkin = stream.ReadString();
break;
default:
Console.Print("[#33CC33]System internal [#FFFFFF]| [#FF0000]Error: [#FFFFFF]Unrecognized stream identifier [#33CC33]" + type + "[#FFFFFF].")
break;
}
}