[HELP] Text 3D
#1

I create a 3D text label to player, but the label show to all players on server, either admin or not ! Why?

pawn Код:
if (PlayerInfo[playerid][pAdmin] >= 1)
{
       new staff:label = Create3DTextLabel("ADMIN BL", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
       Attach3DTextLabelToPlayer(staff, playerid, 0.0, 0.0, 0.7);
}
I put this script at:
pawn Код:
public OnPlayerConnect(playerid)
Reply
#2

What you are doing is.

pawn Код:
if (PlayerInfo[playerid][pAdmin] >= 1) // IF THE PLAYER IS ADMIN (1+)
{
       new staff:label = Create3DTextLabel("ADMIN BL", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0); // THEN MAKE HIM A 3D TEXT
       Attach3DTextLabelToPlayer(staff, playerid, 0.0, 0.0, 0.7); // ATTACH IT TO HIM.
}
I don't think you can't restrict who can see the 3D Text.
Reply
#3

If you want only admins to be able to see the 3D label then use streamer and CreateDynamic3DTextLabelEx function.
pawn Код:
native Text3D:CreateDynamic3DTextLabelEx(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, Float:streamdistance = 100.0, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)