How to create a 3D label for evry pickup on the server? -
[NWA]Hannes - 12.12.2010
Anyone knows how to create a 3D label for evry pickup on the server?
It should say "Type /enter to enter".
Thanks in advance...
Re: How to create a 3D label for evry pickup on the server? -
WillyP - 12.12.2010
Use a loop through all pickups, then Create3DLabel.
Re: How to create a 3D label for evry pickup on the server? -
case 1337: - 12.12.2010
Use
Create3DTextLabel on the same co-ordinates of the pickup location.
Re: How to create a 3D label for evry pickup on the server? -
[NWA]Hannes - 12.12.2010
Quote:
Originally Posted by [FU]Victious
Use a loop through all pickups, then Create3DLabel.
|
An example please?
Quote:
Originally Posted by case 1337:
|
I dont want to do it manually for evry pickup. I got around 700...
Re: How to create a 3D label for evry pickup on the server? -
case 1337: - 12.12.2010
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.
Re: How to create a 3D label for evry pickup on the server? -
Austin - 12.12.2010
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);
}
Re: How to create a 3D label for evry pickup on the server? -
[NWA]Hannes - 12.12.2010
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.
Re: How to create a 3D label for evry pickup on the server? -
case 1337: - 12.12.2010
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.
Re: How to create a 3D label for evry pickup on the server? -
Austin - 12.12.2010
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);
}
Re: How to create a 3D label for evry pickup on the server? -
[NWA]Hannes - 12.12.2010
Thanks all