How Can I Hide & Show

Started by KrOoB_, Jul 02, 2018, 05:53 PM

Previous topic - Next topic

KrOoB_

How can i hide & show sprites  guys ?

umar4911

Told you how to do before. Assign a sprite to show and change to null to remove.
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

KrOoB_


umar4911

Quote from: KrooB on Jul 02, 2018, 07:25 PMcan u give  it again ?
Told you today in your post related onPlayerJoin and onPlayerSpawn
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

KrOoB_


KrOoB_

sX <- GUI.GetScreenSize().X;
sY <- GUI.GetScreenSize().Y;

function Server::ServerData(stream) {

 local StreamReadInt = stream.ReadInt(),
  StreamReadString = stream.ReadString();
 switch (StreamReadInt.tointeger())
 {
  case 1:
   Joinsprite = GUISprite( "black.png",VectorScreen( sX * 0.50, sY * 0.85));
   break;
  case 2:
Joinsprite = null;
   break;
 }
}

Joinsprite <- null;

function SendDataToClient(player, integer, string)
{
 Stream.StartWrite();
 Stream.WriteInt(integer);
 if (string != null) Stream.WriteString(string);
 Stream.SendStream(player);
}
this my edit

umar4911

Quote from: KrooB on Jul 02, 2018, 07:40 PMsX <- GUI.GetScreenSize().X;
sY <- GUI.GetScreenSize().Y;

function Server::ServerData(stream) {

 local StreamReadInt = stream.ReadInt(),
  StreamReadString = stream.ReadString();
 switch (StreamReadInt.tointeger())
 {
  case 1:
   Joinsprite = GUISprite( "black.png",VectorScreen( sX * 0.50, sY * 0.85));
   break;
  case 2:
Joinsprite = null;
   break;
 }
}

Joinsprite <- null;

function SendDataToClient(player, integer, string)
{
 Stream.StartWrite();
 Stream.WriteInt(integer);
 if (string != null) Stream.WriteString(string);
 Stream.SendStream(player);
}
this my edit
yeah. This will work.
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

KrOoB_

bro can you give me onPlayerJoin codes :)

KrOoB_