How to create a 3D label for evry pickup on the server?
#1

Anyone knows how to create a 3D label for evry pickup on the server?

It should say "Type /enter to enter".

Thanks in advance...
Reply
#2

Use a loop through all pickups, then Create3DLabel.
Reply
#3

Use Create3DTextLabel on the same co-ordinates of the pickup location.
Reply
#4

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
Use a loop through all pickups, then Create3DLabel.
An example please?

Quote:
Originally Posted by case 1337:
Посмотреть сообщение
Use Create3DTextLabel on the same co-ordinates of the pickup location.
I dont want to do it manually for evry pickup. I got around 700...
Reply
#5

Quote:
Originally Posted by [NWA]Hannes
Посмотреть сообщение
An example please?


I dont want to do it manually for evry pickup. I got around 700...
700 pickups is impossible to do, well, if you want to spend over 2 hours doing nothing.

pawn Код:
// This is the loop.
new x; while(x < MAX_PICKUPS)
{
    switch(x)
    {
        case 1: // Pickup 1
        {
            Create3DTextLabel("Type /enter to enter", 0xFFFFFFAA, PickupX, PickupY, PickupZ, 40.0, 0);
        }
    }
}
Otherwise it's impossible unless you want to spend over 3 hours manually.
Reply
#6

You'd have a stock function as...

pawn Код:
stock CreatePickupWithLabel(model, type, Float:X, Float:Y, Float:Z, Virtualworld)
{
    Create3DTextLabel("Bla bla bla",0x008080FF,X,Y,Z,50.0,Virtualworld,1);
    return CreatePickup(model, type, X, Y, Z, Virtualworld);
}
Reply
#7

Quote:
Originally Posted by case 1337:
Посмотреть сообщение
omfg, new scripters..

Here is the loop.

700 pickups is impossible to do, well, if you want to spend over 2 hours doing nothing.

pawn Код:
// This is the loop.
new x; while(x < MAX_PICKUPS)
{
}
I asked for a whole example, not the loop, i already know how to make a loop, im not a new scipter, i havent just gotten time to figure out how to do a 3d label for evry pickup on the server.
Reply
#8

Quote:
Originally Posted by [NWA]Hannes
Посмотреть сообщение
I asked for a whole example, not the loop, i already know how to make a loop, im not a new scipter, i havent just gotten time to figure out how to do a 3d label for evry pickup on the server.
Sorry, I changed my post.

Quote:
Originally Posted by Austin
Посмотреть сообщение
You'd have a stock function as...

pawn Код:
stock CreatePickupWithLabel(model, type, Float:X, Float:Y, Float:Z, Virtualworld)
{
    Create3DTextLabel("Bla bla bla",0x008080FF,X,Y,Z,50.0,Virtualworld,1);
    return CreatePickup(model, type, X, Y, Z, Virtualworld);
}
This. Although virtualworld is not needed.
Reply
#9

How about....

pawn Код:
stock CreatePickupWithLabel(model, type, Float:X, Float:Y, Float:Z, Virtualworld=0)
{
    Create3DTextLabel("Bla bla bla",0x008080FF,X,Y,Z,50.0,Virtualworld,1);
    return CreatePickup(model, type, X, Y, Z, Virtualworld);
}
Reply
#10

Thanks all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)