SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 12/12/2010, 06:24 PM   #1
[NWA]Hannes
Huge Clucker
 
[NWA]Hannes's Avatar
 
Join Date: Jul 2010
Location: Sweden
Posts: 343
Reputation: 12
Default How to create a 3D label for evry pickup on the server?

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

It should say "Type /enter to enter".

Thanks in advance...
[NWA]Hannes is offline  
Old 12/12/2010, 06:24 PM   #2
WillyP
High-roller
 
WillyP's Avatar
 
Join Date: Jul 2010
Location: England
Posts: 2,027
Reputation: 63
Default Re: How to create a 3D label for evry pickup on the server?

Use a loop through all pickups, then Create3DLabel.
__________________
once average now terrible
WillyP is offline  
Old 12/12/2010, 06:25 PM   #3
case 1337:
Big Clucker
 
case 1337:'s Avatar
 
Join Date: Dec 2010
Posts: 61
Reputation: 0
Default Re: How to create a 3D label for evry pickup on the server?

Use Create3DTextLabel on the same co-ordinates of the pickup location.
case 1337: is offline  
Old 12/12/2010, 06:26 PM   #4
[NWA]Hannes
Huge Clucker
 
[NWA]Hannes's Avatar
 
Join Date: Jul 2010
Location: Sweden
Posts: 343
Reputation: 12
Default Re: How to create a 3D label for evry pickup on the server?

Quote:
Originally Posted by [FU]Victious View Post
Use a loop through all pickups, then Create3DLabel.
An example please?

Quote:
Originally Posted by case 1337: View Post
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...
[NWA]Hannes is offline  
Old 12/12/2010, 06:29 PM   #5
case 1337:
Big Clucker
 
case 1337:'s Avatar
 
Join Date: Dec 2010
Posts: 61
Reputation: 0
Default Re: How to create a 3D label for evry pickup on the server?

Quote:
Originally Posted by [NWA]Hannes View Post
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 Code:
// 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.
case 1337: is offline  
Old 12/12/2010, 06:32 PM   #6
Austin
Huge Clucker
 
Join Date: Jul 2006
Location: Stafford, England
Posts: 253
Reputation: 206
Default Re: How to create a 3D label for evry pickup on the server?

You'd have a stock function as...

pawn Code:
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);
}
Austin is offline  
Old 12/12/2010, 06:34 PM   #7
[NWA]Hannes
Huge Clucker
 
[NWA]Hannes's Avatar
 
Join Date: Jul 2010
Location: Sweden
Posts: 343
Reputation: 12
Default Re: How to create a 3D label for evry pickup on the server?

Quote:
Originally Posted by case 1337: View Post
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 Code:
// 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.
[NWA]Hannes is offline  
Old 12/12/2010, 06:35 PM   #8
case 1337:
Big Clucker
 
case 1337:'s Avatar
 
Join Date: Dec 2010
Posts: 61
Reputation: 0
Default Re: How to create a 3D label for evry pickup on the server?

Quote:
Originally Posted by [NWA]Hannes View Post
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 View Post
You'd have a stock function as...

pawn Code:
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.
case 1337: is offline  
Old 12/12/2010, 06:37 PM   #9
Austin
Huge Clucker
 
Join Date: Jul 2006
Location: Stafford, England
Posts: 253
Reputation: 206
Default Re: How to create a 3D label for evry pickup on the server?

How about....

pawn Code:
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);
}
Austin is offline  
Old 12/12/2010, 06:41 PM   #10
[NWA]Hannes
Huge Clucker
 
[NWA]Hannes's Avatar
 
Join Date: Jul 2010
Location: Sweden
Posts: 343
Reputation: 12
Default Re: How to create a 3D label for evry pickup on the server?

Thanks all
[NWA]Hannes is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello evry one. I have a question. trapped1 Help Archive 2 28/11/2010 10:05 PM
[Reques]Create Pickup Help GBLTeam Help Archive 5 25/08/2010 09:17 AM
Pickup does not appear (Amount < 400) - Create pickup for specific player? Programie Help Archive 4 19/08/2009 09:50 PM


All times are GMT. The time now is 11:23 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.