'i' icon + text - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 'i' icon + text (
/showthread.php?tid=640452)
'i' icon + text -
BadJih - 02.09.2017
Hey, can someone do an "i" icon & text up of it with position (so i'll be able change the position)
or just give me an example
Re: 'i' icon + text -
Kane - 02.09.2017
What? Are you referring to pickups?
http://files.prineside.com/gtasa_sam...e/1239_w_s.jpg
Re: 'i' icon + text -
BadJih - 02.09.2017
Quote:
Originally Posted by Arthur Kane
|
yes, with text in the up of it, please
Re: 'i' icon + text -
Kane - 02.09.2017
Create it with CreatePickup().
https://sampwiki.blast.hk/wiki/CreatePickup
The models (what you want is 1239).
https://sampwiki.blast.hk/wiki/Pickup_IDs
Pickup types.
https://sampwiki.blast.hk/wiki/PickupTypes
Re: 'i' icon + text -
BadJih - 02.09.2017
dude i dont know how to code it with text !!
Re: 'i' icon + text -
Kane - 02.09.2017
Look at the example usage. It would be easier to explain it to you if you tell us what part you don't understand.
PHP код:
new pickup; // Create a variable to store the pickup ID in
public OnGameModeInit()
{
pickup = CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);
// Create an armour pickup and store the ID in 'pickup'
return 1;
}
// Later..
DestroyPickup(pickup); // Example of using the pickup ID
pickup = 0; // pickup variable needs to be reset to avoid future conflicts
Re: 'i' icon + text -
Luke_James - 02.09.2017
You can't expect people to spoon feed you everything. Learn.
Re: 'i' icon + text -
BadJih - 02.09.2017
pawn Код:
pickup = CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);
this is good ... how to add text to it like: a text higher(Hello) bottom of it(hello)>< (type /enter)
sry 4my bad english
Re: 'i' icon + text -
BadJih - 02.09.2017
Quote:
Originally Posted by Luke_James
You can't expect people to spoon feed you everything. Learn.
|
he really wants to help me and i thanks him and i prayed for him. did i typed Luke James! give me the code ! i dont want to learn ?
learn to respect
Re: 'i' icon + text -
Kane - 02.09.2017
Create3DTextLabel.
https://sampwiki.blast.hk/wiki/Create3DTextLabel
Example:
PHP код:
public OnGameModeInit()
{
Create3DTextLabel("I'm at the coordinates:\n30.0, 40.0, 50.0", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, 0);
return 1;
}
Make the coordinates the same as your pickups.