Nametags - Questions
#5

Quote:
Originally Posted by ItsRobinson
Посмотреть сообщение
PHP код:
forward UpdateNametag();
public 
UpdateNametag()
{
    foreach(new 
Player)
    {
        if(
IsPlayerConnected(i))
        {
            new 
nametag[128], playername[MAX_PLAYER_NAME], Float:armourFloat:health;
            
GetPlayerArmour(iarmour);
            
GetPlayerHealth(ihealth);
            
GetPlayerName(iplayernamesizeof(playername));
            
format(nametagsizeof(nametag), "{%06x}%s {FFFFFF}(%i)\n{FF8282}HP: %f{FFFFFF} - AR: %f"GetPlayerColor(i) >>> 8playernameifloatround(healthfloatround_round), floatround(armourfloatround_round));
            
UpdateDynamic3DTextLabelText(cNametag[i], 0xFFFFFFFFnametag);
        }
    }

I think that will work, just replace the one from the guys script with the one above.

Not tested.
You dont need IsPlayerConnected part in foreach, and also i have question to all how to create
https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer to this include with Create3dTextLabel ?
Reply


Messages In This Thread
Nametags - Questions - by BrainDamaged - 12.07.2018, 20:22
Re: Nametags - Questions - by BrainDamaged - 13.07.2018, 08:22
Re: Nametags - Questions - by ItsRobinson - 13.07.2018, 19:09
Re: Nametags - Questions - by J0sh... - 13.07.2018, 19:15
Re: Nametags - Questions - by Jefff - 13.07.2018, 19:43
Re: Nametags - Questions - by ItsRobinson - 13.07.2018, 19:49
Re: Nametags - Questions - by Jefff - 13.07.2018, 20:06
Re: Nametags - Questions - by ItsRobinson - 13.07.2018, 20:29
Re: Nametags - Questions - by Jefff - 13.07.2018, 20:36
Re: Nametags - Questions - by ItsRobinson - 13.07.2018, 21:45

Forum Jump:


Users browsing this thread: 3 Guest(s)