[HELP] 3d text label
#1

I want to do a 3d text label for a specific player who are an Administrator, but doesn't work. Maybe someone knows, what is?

pawn Код:
new Text3D:Alabel[MAX_PLAYERS];

public OnFilterScriptInit()
{
     SetTimer("Admin3d", 1000, true);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    Delete3DTextLabel(Alabel[playerid]);
    return 1;
}

forward Admin3d(playerid);
public Admin3d(playerid)
{
    if(GetPVarInt(playerid, "Admin") < 1)
    {
        Alabel[playerid] = Create3DTextLabel("Administrator", red,30.0,40.0,50.0,40.0,0);
        Attach3DTextLabelToPlayer(Alabel[playerid], playerid, 0.0, 0.0, 0.7);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)