Help with 3dtext?
#1

Hello i want to make a 3dtext but its a gametext and i want to change it but i dont know how i tried to many times but i faield please help ?

Here is the code:

PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
    new 
propid = -1;
    for(new 
idid<MAX_PROPERTIESid++)
    {
        if(
PropInfo[id][PickupNr] == pickupid)
        {
            
propid id;
            break;
        }
    }
    if(
propid != -1)
    {
        new 
str[128];
        
format(str128"~y~\"%s\"~n~~r~Value: ~y~$%d~n~~r~Earning: ~y~$%d~n~~r~Owner: ~y~%s"PropInfo[propid][PropName], PropInfo[propid][PropValue], PropInfo[propid][PropEarning], PropInfo[propid][PropOwner]);
        
GameTextForPlayer(playeridstr60003);
    }
    return 
1;

Reply
#2

Refresh COMON PLEASE HELP ME!! (((
Reply
#3

https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel

Or if you're using streamer plugin, go on Icognito's thread: https://sampforum.blast.hk/showthread.php?tid=102865

I RECOMMEND reading the wiki samp either way.
Reply
#4

Hansrutger i dont know how to make the 3d i tried i get errors i cant do it please do it for me it's so hard, please help !
Reply
#5

PLEASE HELP ?!?!!?
Reply
#6

I suggest you don't practice how to do 3D labels if you don't know what the parameters are. Parameters = the things inside "( )" of something.
Reply
#7

Just made another example on how to use textlabels for players in another thread:

pawn Код:
new Text3D:label[MAX_PLAYERS],
    Admin[MAX_PLAYERS];

public OnGameModeInit()//just create it here, we update it later
{
    foreach(Player,i)
    {
        label[i] = Create3DTextLabel("", -1, 0, 0, 0, 10.0, 0, 0);
    }
    return 1;
}

public OnPlayerSpawn(playerid)//we update it on spawn and attach it to the player
{
    if(Admin[playerid]>0)//if player is admin, update the admin label
    {
        s[24];
        format(s, sizeof(s), "%s", Admin[playerid]);
        Update3DTextLabelText(label[playerid],-1,s);
    }
    else Update3DTextLabelText(label[playerid],-1," ");//else delete/emtpy it
    Attach3DTextLabelToPlayer(label[playerid], playerid, 0, 0, 0.3);
    return 1;
}

//In case you want to "delete" the label, just empty it using:
Update3DTextLabelText(label[playerid], -1, " ");
This might help you out.
Just adjust this to your needs. (implement this into your loop and adjust the variables/parameters)
Reply
#8

Quote:
Originally Posted by BlackWolf120
Посмотреть сообщение
Just made another example on how to use textlabels for players in another thread:

pawn Код:
new Text3D:label[MAX_PLAYERS],
    Admin[MAX_PLAYERS];

public OnGameModeInit()//just create it here, we update it later
{
    foreach(Player,i)
    {
        label[i] = Create3DTextLabel("", -1, 0, 0, 0, 10.0, 0, 0);
    }
    return 1;
}

public OnPlayerSpawn(playerid)//we update it on spawn and attach it to the player
{
    if(Admin[playerid]>0)//if player is admin, update the admin label
    {
        s[24];
        format(s, sizeof(s), "%s", Admin[playerid]);
        Update3DTextLabelText(label[playerid],-1,s);
    }
    else Update3DTextLabelText(label[playerid],-1," ");//else delete/emtpy it
    Attach3DTextLabelToPlayer(label[playerid], playerid, 0, 0, 0.3);
    return 1;
}

//In case you want to "delete" the label, just empty it using:
Update3DTextLabelText(label[playerid], -1, " ");
This might help you out.
Just adjust this to your needs. (implement this into your loop and adjust the variables/parameters)
I have done this but now my 3d text is flashing when i get close to it ! :@
Reply
#9

What do you mean by "flashing"?

Please keep in mind to adjust all parameters in the Attach and Create function.




regards, wolf.
Reply
#10

Well i go stand at the icon and it flashes and disapears everything is right ?!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)