Blockland Forums > Modification Help

how to display variables?

Pages: << < (2/5) > >>

Fluff-is-back:

You are missing a " in front of no.
also in this function you have not defined %clientname, you should use %client.name for getting their name.


function servercmdadmin(%client)
{
    if(%client.isAdmin)
    {
        talk(%client.name SPC "is hacking!");
    }
    else
    {
        echo("no.");
    }
}


deathrider:


--- Quote from: Fluff-is-back on April 06, 2012, 06:25:03 AM ---You are missing a " in front of no.
also in this function you have not defined %clientname, you should use %client.name for getting their name.


function servercmdadmin(%client)
{
    if(%client.isAdmin)
    {
        talk(%client.name SPC "is hacking!");
    }
    else
    {
        echo("no.");
    }
}


--- End quote ---
i always miss the little things i did not know that %client.name was a set var what are the ones that just like that

Fluff-is-back:

on a client object, %client, you can use:

%client.name - The client's name
%client.bl_id - The client's Blockland ID
%client.clanPrefix - self explanitory
%client.clanSuffix - ditto.
%client.isSuperAdmin - 1 if the client is super admin, 0, if not
%client.isAdmin - same as above but for admin

and a long list:

  .accent = "0"
  .accentColor = "0 0.200 0.640 0.700"
  .bl_id = "2992"
  .bpsCount = "0"
  .brickGroup = "9887"
  .Camera = "14343"
  .chest = "0"
  .chestColor = "1 1 1 1"
  .connected = "1"
  .currentPhase = "3"
  .currentPreparePhase = "1"
  .currInv = "-1"
  .currInvSlot = "-1"
  .decalName = "Space-Old"
  .eventCamType = "None"
  .faceName = "memeYaranika"
  .hasDownloadedGUI = "1"
  .hasHeightControlClient = "1"
  .hasPrefList = "1"
  .hasRTB = "1"
  .hasSpawnedOnce = "1"
  .hasTeamDM = "1"
  .hasVCE = "1"
  .hat = "0"
  .hatColor = "0.5 0.5 0.5 1"
  .HCchecknumber = "5"
  .headColor = "1 1 1 1"
  .Hip = "0"
  .hipColor = "0.105 0.458 0.768 1"
  .inventory0 = "320"
  .inventory1 = "212"
  .inventory2 = "210"
  .inventory3 = "204"
  .inventory4 = "202"
  .inventory5 = "201"
  .inventory6 = "209"
  .inventory7 = "265"
  .inventory8 = "278"
  .inventory9 = "336"
  .isAdmin = "1"
  .isSuperAdmin = "1"
  .LANname = "Fluffy"
  .Larm = "0"
  .larmColor = "0.105 0.458 0.768 1"
  .lastUpdateBodyColorsTime = "11219"
  .lastUpdateBodyPartsTime = "11219"
  .Lhand = "1"
  .lhandColor = "0.749 0.18 0.482 1"
  .lleg = "1"
  .llegColor = "0.105 0.458 0.768 1"
  .name = "Fluffy"
  .netName = "Fluffy"
  .numFoundTreasureChests = "0"
  .pack = "3"
  .packColor = "0.9 0 0 1"
  .persistenceSchedule = "1127"
  .Player = "14344"
  .Rarm = "0"
  .rarmColor = "0.749 0.18 0.482 1"
  .Rhand = "1"
  .rhandColor = "0.105 0.458 0.768 1"
  .rleg = "1"
  .rlegColor = "0.749 0.18 0.482 1"
  .rtbVersion = "4.01"
  .score = "0"
  .secondpack = "0"
  .secondPackColor = "0 1 0 1"
  .tcpObj = "9871"
  .undoStack = "14342"


deathrider:


--- Quote from: Fluff-is-back on April 06, 2012, 06:38:41 AM ---on a client object, %client, you can use:

%client.name - The client's name
%client.bl_id - The client's Blockland ID
%client.clanPrefix - self explanitory
%client.clanSuffix - ditto.
%client.isSuperAdmin - 1 if the client is super admin, 0, if not
%client.isAdmin - same as above but for admin

and a long list:

-snip-

--- End quote ---
thats what im looking for

jes00:


--- Quote from: Fluff-is-back on April 06, 2012, 06:38:41 AM ---on a client object, %client, you can use:

%client.name - The client's name
%client.bl_id - The client's Blockland ID
%client.clanPrefix - self explanitory
%client.clanSuffix - ditto.
%client.isSuperAdmin - 1 if the client is super admin, 0, if not
%client.isAdmin - same as above but for admin

and a long list:

-snip-

--- End quote ---
Is not %client.isHost valid too?

Pages: << < (2/5) > >>

Go to full version