SA-MP Forums Archive
Help about Attach CreateDynamic3DTextLabel to player ! - 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 about Attach CreateDynamic3DTextLabel to player ! (/showthread.php?tid=511622)



Help about Attach CreateDynamic3DTextLabel to player ! - VenomMancer - 06.05.2014

How to make CreateDynamic3DTextLabel attach to player's body ?
pawn Код:
Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
Help me guys :)
Thanks :)


Re: Help about Attach CreateDynamic3DTextLabel to player ! - Konstantinos - 06.05.2014

There is "attachedplayer" parameter. Instead of INVALID_PLAYER_ID, set it to the player you want to attach the 3D label.


Re: Help about Attach CreateDynamic3DTextLabel to player ! - xConnor - 06.05.2014

contoh:
Код:
new Text3D :label = Create3DTextLabel ( "VenomMancer" , 0xFFFFFF, 30.0 , 40.0 , 50.0 , 40.0 , 0 ) ;
Attach3DTextLabelToPlayer ( label, playerid, 0.0 , 0.0 , 0.7 ) ;
parameter:
Код:
(Text3D:id, playerid, Float:OffsetX,
Float:OffsetY, Float:OffsetZ)



Re: Help about Attach CreateDynamic3DTextLabel to player ! - VenomMancer - 06.05.2014

example for this ?
pawn Код:
else if(Spree[playerid] == 6)
    {
        format(sprees, sizeof(sprees), "{FF0000}:: KILL INFO :: "kuning"%s[ID:%i] {808080}Mendapatkan "biru"+10score +$98.500 "putih"{00FF00}[Most Wanted]", pname,playerid);
        SendClientMessageToAll(-1, sprees);
        GameTextForPlayer(playerid, "~n~~n~~g~~h~~h~]Most wanted] ~n~~y~~h~+10score +$98.500", 5000, 3);
        SetPlayerScore(playerid, GetPlayerScore(playerid) + 10);
        GivePlayerCash(playerid, 98500);
        SetPlayerHealth(playerid,99.9);
        SetPlayerArmour(playerid,99.9);
        AccInfo[playerid][Mostwanted]++;
        SetPlayerWantedLevel(playerid, 6);

        MWTD = Create3DTextLabel("[Most Wanted]", 0x00FF00FF, 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(MWTD, playerid, 0.0, 0.0, -0.8);
    }
i am use Create3DTextLabel, can u make for me on CreateDynamic3DTextLabel ?
i mean replace to my script


Re: Help about Attach CreateDynamic3DTextLabel to player ! - Konstantinos - 06.05.2014

pawn Код:
CreateDynamic3DTextLabel("[Most Wanted]", 0x00FF00FF, 30.0, 40.0, 50.0, 40.0, playerid);



Re: Help about Attach CreateDynamic3DTextLabel to player ! - VenomMancer - 06.05.2014

I will testting now
Thanks for your help +1rep