Quote:
Originally Posted by fowlplay4
[...] I would suggest you take a different route with your nickname script, and this would be for better as players would be able to disable them and such as.
PHP Code:
//#CLIENTSIDE
function onCreated() {
setTimer(0.05);
}
function onTimeout() {
hideimgs(200, 1000); // This will need to be re-optimized as hiding then redrawing every frame is bad :(
drawNicknames();
}
function drawNicknames() {
// Loop through Players
for (temp.p: players) {
// Draw Text under Player
with (findimg(200 + temp.p.id)) {
x = temp.p.x + 1.5;
y = temp.p.y + 3;
style = "bc";
text = temp.p.nick;
}
}
}
I didn't include the enablefeatures part of the script because I assume you already know how to use it, also I noticed you deleted your thread when you had your problem fixed. Don't do that!
|
Almost the same question you have. Showing health will work the same way as HP except you'll get the value from a player attribute (
player.attr[]).