Okay, so I looked at a couple custom name/attribute displays to display what you want under players. Or make your own custom nick design.
But, problem is - When someone else logs in, it all goes haywire. By myself, it looks fine and such. Now I'm new to all this, so it is probably something stupid like "oh hey add this line here, done". So if someone could help me, would be much appreciated! (fowlplay, i know you're out there! )
So right now, I've just made it so it displays staff on tag, and players HP. It still needs the players nicks added to it with another line of showtext(blahblah, player[a].nick);. But, I wish to find out this problem of why its all going weird when another player logs in!
Help would be appreciated
PHP Code:
//#CLIENTSIDE
function onCreated( )
{
this.staff_list =
{
"Manager", "Admin",
"Head Developer", "Developer",
"GAT", "LAT", "NAT", "GANI",
"Staff", "Working"
};
onTimeOut( );
}
function onTimeOut( )
{
player.attr[4] = clientr.hp@ "/" @clientr.hpmax;
hideimgs( 200 );
for( a = 0; a < playerscount; a++ )
{
if ( players[a].guild in this.staff_list )
{
showtext( 201 + a, players[a].x + 1.5, players[a].y + 3.0, "Arial Bold", "c", @players[a].nick );
changeimgcolors( 201 + a, 1, 1, 1, .7 );
changeimgvis( 201 + a, 1 );
changeimgzoom( 201 + a, .7 );
}
else {
//HP01
showtext( 202 + a, players[a].x - .325, player[a].y + 2.9, "Arial", "b", "HP:" SPC players[a].attr[4] );
changeimgcolors( 202, 0, 0, 0, .4 );
changeimgzoom( 202, 0.6 );
changeimgvis( 202, 1 );
//HP02
showtext( 203 + a, players[a].x - .2, player[a].y + 2.9, "Arial", "b", "HP:" SPC players[a].attr[4] );
changeimgcolors( 203, 1, .3, .3, .85 );
changeimgzoom( 203, 0.6 );
changeimgvis( 203, 1 );
}
}
setTimer( 0.05 );
}