15.10.2013, 18:41
https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel
you'd have to do something like....
new AttachLabels[MAX_PLAYERS][MAX_PLAYERS];
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.
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);
}
}
}