3D Label Visible to Certain Players
#2

https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel

you'd have to do something like....

new AttachLabels[MAX_PLAYERS][MAX_PLAYERS];

pawn Код:
foreach(new i : Player)
{
    foreach(new j : Player)
    {
        if(i == j) continue;
        if(Team[i] == Team[j])
        {
            // Create player label and attach to specified player
            AttachLabels[i][j] = CreatePlayer3DTextLabel(i, text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, j, attachedvehicle, testLOS);
        }
    }
}
There is still more to do such as creating labels when a player joins or destroying when a player disconnects this part would be for when a new player joins the server it will create all the 3D Labels for that that player.
Reply


Messages In This Thread
3D Label Visible to Certain Players - by DesertFoxNight - 15.10.2013, 18:31
Re: 3D Label Visible to Certain Players - by Pottus - 15.10.2013, 18:41
Re: 3D Label Visible to Certain Players - by DesertFoxNight - 15.10.2013, 22:55

Forum Jump:


Users browsing this thread: 1 Guest(s)