Nametag hide add on

Author Topic: Nametag hide add on  (Read 1763 times)

An admin-only toggleable that hides your nametag COMPLETELY in and outside minigames, ONLY for the specific player.

could be a command like /hidetag etc etc
« Last Edit: July 21, 2015, 04:44:39 PM by Block Aloni »

The best you can do is decrease the render distance, but it has a minimum of.....I don't remember what, but it's a few bricks at least

The best you can do is decrease the render distance, but it has a minimum of.....I don't remember what, but it's a few bricks at least
Actually you can set the shape name distance to 0 and you won't see it at all, pretty useful since I think that's what it does when a player dies; unless it puts their shape name to just blank
« Last Edit: July 22, 2015, 01:16:52 PM by Kyuande »

Actually you can set the shape name distance to 0 and you won't see it at all
I tried doing this a while ago and you couldn't, it had a minimum distance. I remember making a coding thread help about the subject.

Unless it was changed recently

in a past update, the minimum distance was reduced to 0

so you can hide names entirely now

Can someone explain to me how to do any of these? if they're possible?

Do you want it to save if they die and respawn?

Do you want it to save if they die and respawn?
Yes, that would be great.

I tried doing this a while ago and you couldn't, it had a minimum distance. I remember making a coding thread help about the subject.

Unless it was changed recently
Recently? August 18th 2012.

This should work fine, admin required.

Code: server.cs (14 lines)
function serverCmdHideTag(%client)
{
    if(!%client.isAdmin)
        return;

    if(!isObject(%player = %client.getControlObject()))
        return;

    if(!isFunction(%player.getClassName(), setShapeNameDistance))
        return;

    %player.setShapeNameDistance(0);
    %client.chatMessage("Your name tag is now hidden on your current object you are controlling.");
}


This should work fine, admin required.

Code: server.cs (14 lines)
function serverCmdHideTag(%client)
{
    if(!%client.isAdmin)
        return;

    if(!isObject(%player = %client.getControlObject()))
        return;

    if(!isFunction(%player.getClassName(), setShapeNameDistance))
        return;

    %player.setShapeNameDistance(0);
    %client.chatMessage("Your name tag is now hidden on your current object you are controlling.");
}

What exactly do I do with this?

Oh yeah.

Basically you put the code into a server.cs file and then put this in a folder or a zip, you'll also need to add a description.txt with that file as well
You could probably name the folder/zip as "Script_HideNameTag"

Oh yeah.

Basically you put the code into a server.cs file and then put this in a folder or a zip, you'll also need to add a description.txt with that file as well
You could probably name the folder/zip as "Script_HideNameTag"
Yes, but how do I use it ingame?

Yes, but how do I use it ingame?
Once you do all that, put the zip file in your add-ons, enable it, go into your server, and type /HideTag.

I've tried it and it appears it doesn't work inside minigames. It works normally with the chat message appearing, but my nametag itself isn't hidden.

Can someone fix?
« Last Edit: July 23, 2015, 11:49:37 AM by Block Aloni »