12.12.2010, 18:24
Anyone knows how to create a 3D label for evry pickup on the server?
It should say "Type /enter to enter".
Thanks in advance...
It should say "Type /enter to enter".
Thanks in advance...
Use Create3DTextLabel on the same co-ordinates of the pickup location.
|
An example please?
I dont want to do it manually for evry pickup. I got around 700... |
// 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);
}
}
}
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);
}
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.
|
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);
}