SA-MP Forums Archive
[HELP] 3d text label - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] 3d text label (/showthread.php?tid=497815)



[HELP] 3d text label - V4at - 28.02.2014

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;
}