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 Menufunction onPlayerCommand( player, cmd, text )
{
if(cmd=="overlay"){
Stream.StartWrite()
Stream.WriteInt(1)
Stream.SendStream(player)
}
else if(cmd=="off"){
Stream.StartWrite()
Stream.WriteInt(3)
Stream.SendStream(player)
}
else if(cmd=="web"){
Stream.StartWrite()
Stream.WriteInt(2)
Stream.SendStream(player)
}
}
function onClientScriptData(player)
{
if (type == 1)
{
Stream.StartWrite();
Stream.WriteInt(1);
Stream.SendStream(player);
}
if (type == 2)
{
Stream.StartWrite();
Stream.WriteInt(2);
Stream.SendStream(player);
}
if (type == 3)
{
Stream.StartWrite();
Stream.WriteInt(3);
Stream.SendStream(player);
}
}
function Server::ServerData(stream)
{
local type = stream.ReadInt();
if (type == 1) {//CreateSprit
::sprite <- GUISprite("overlay.png", VectorScreen(40, 290));
::sprite.Size = VectorScreen(180, 300);
::sprite.Alpha = 210;
::sprite.AddFlags(GUI_FLAG_MOUSECTRL);
}
if (type == 2) {//CreateSprit
::sprite <- GUISprite("web.png", VectorScreen(40, 290));
::sprite.Size = VectorScreen(180, 300);
::sprite.Alpha = 210;
::sprite.AddFlags(GUI_FLAG_MOUSECTRL);
}
if (type == 3) {//Delete Sprit
::sprite <- null;
}
}
Quote from: MatheuS on Aug 23, 2017, 11:04 AMhttps://pastebin.com/j4T115jc
*not tested*