SA-MP Forums Archive
AttachLabel on me head dont show? - 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: AttachLabel on me head dont show? (/showthread.php?tid=397144)



AttachLabel on me head dont show? - Mustafa6155 - 03.12.2012

pawn Код:
if(GetPlayerScore(playerid) > 0 && GetPlayerScore(playerid) < 10)
    {
        new Text3D:label = Create3DTextLabel("Soldaat der 3e klasse",GREEN, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) > 50 && GetPlayerScore(playerid) < 50)
    {
        new Text3D:label1 = Create3DTextLabel("Soldaat der 2e klasse",GREEN, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label1, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) > 100 && GetPlayerScore(playerid) < 100)
    {
        new Text3D:label2 = Create3DTextLabel("Sergeant der 1e klasse",GREEN, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label2, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) > 200 && GetPlayerScore(playerid) < 200)
    {
        new Text3D:label3 = Create3DTextLabel("Korporaal",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label3, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) > 300 && GetPlayerScore(playerid) < 300)
    {
        new Text3D:label4 = Create3DTextLabel("Korporaal der 1e klasse",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label4, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) > 400 && GetPlayerScore(playerid) < 500)
    {
        new Text3D:label5 = Create3DTextLabel("Sergeant",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label5, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) > 500 && GetPlayerScore(playerid) < 600)
    {
        new Text3D:label6 = Create3DTextLabel("Sergeant der 1e klasse",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label6, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) >= 600)
    {
        new Text3D:label7 = Create3DTextLabel("Sergeant-Majoor",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) >= 700)
    {
        new Text3D:label7 = Create3DTextLabel("Adjudant",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) >= 800)
    {
        new Text3D:label7 = Create3DTextLabel("Vaandrig",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) >= 900)
    {
        new Text3D:label7 = Create3DTextLabel("Tweede-Luitenant",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) >= 1000)
    {
        new Text3D:label7 = Create3DTextLabel("Eerste-Luitenant",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) >= 1500)
    {
        new Text3D:label7 = Create3DTextLabel("Kapitein",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) >= 2000)
    {
        new Text3D:label7 = Create3DTextLabel("Majoor",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) >= 2500)
    {
        new Text3D:label7 = Create3DTextLabel("Luitenant-Kolonel",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) >= 3000)
    {
        new Text3D:label7 = Create3DTextLabel("Kolonel",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) >= 4000)
    {
        new Text3D:label7 = Create3DTextLabel("Brigade-Generaal",RED, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) >= 5000)
    {
        new Text3D:label7 = Create3DTextLabel("Generaal-Majoor",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) >= 6000)
    {
        new Text3D:label7 = Create3DTextLabel("Luitenant-Generaal",WHITE, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) >= 8000)
    {
        new Text3D:label7 = Create3DTextLabel("Generaal",YELLOW, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
    }
    else if(GetPlayerScore(playerid) >= 10000)
    {
        new Text3D:label7 = Create3DTextLabel("Leger Baas",RED, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
    }
    return 1;
}
Its under OnPlayerSpawn
It dont show for other players they dont see above me Head?
How to fix?


Re: AttachLabel on me head dont show? - Vince - 03.12.2012

What the fuck, dude?

I already told you that you can't see labels attached to yourself! What is so hard to understand about that?!


Re: AttachLabel on me head dont show? - Mustafa6155 - 03.12.2012

Vince I mean!

How to See that other people see it above me head.
And the second time i am not stupid ik you self cant see it!
But how to do other people see?