[Include] [INC] HPText - Pickup 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] HPText - Pickup Text! (
/showthread.php?tid=526151)
[INC] HPText - Pickup Text! -
Hirsw0w - 15.07.2014
Pickup Text
Author Hirsw0w
* Sorry with my bad english.
* Thats my first include I posting and I know that not perfect but I new.
with the include you can create a new type of pickups,
Text Pickups but you setting everything!
* you can choose the range of taking him from the text.
* you can choose the draw distance
* you can choose the text and color text
* you can choose the types ( talk about it later )
* you can choose the player can see the pickup ( -1 = all the players )
* you can choose the virtual world.
Forwards:
pawn Код:
forward OnPlayerPickupPickupText(playerid,ptextid); // called when player pickup a pickup text
Functions:
pawn Код:
HPText_CreatePickup(playerid, Type, Text[],color,Float:x,Float:y,Float:z,Float:DrawDistance,virtualworld,Float:r) // Create a pickup text
HPText_DeletePickup(ptextid) // Delete a pickup text.
Defines:
pawn Код:
#define MAX_PText 50 // the max pickup text allows in once
#define PTEXT_PER 0 // type 0 Pickup Text for permanently
#define PTEXT_ONE 1 // type 1 Pickup Text for pickup once
Example:
pawn Код:
public OnFilterScriptInit()
{
new pickup;
// Function playerid type message x y z dd vw range
pickup = HPText_CreatePickup(-1, PTEXT_PER,"Hey Everyone",2351.23,2351.53,3525.23,12.0,0,3.0);
return 1;
}
Bugs:
* Not found yet but if you found write in the post or send me Prive message on the forum.
Comments:
* the function: HPText_CreatePickup return the pickup text id
* sorry for my bad english
* I new on scripting.
Download:
Pastebin:
http://pastebin.com/4qjcUrKY
Pictures:
Enjoy!
Re: [INC] HPText - Pickup Text! -
GuyYahood1 - 15.07.2014
Awesome!!
Re: [INC] HPText - Pickup Text! -
Hirsw0w - 15.07.2014
Quote:
Originally Posted by GuyYahood1
Awesome!!
|
thx,
I fix a bug with the code the link is update.
Re: [INC] HPText - Pickup Text! -
Hirsw0w - 17.07.2014
comments please. I want to know what you think about it.
Re: [INC] HPText - Pickup Text! -
nGen.SoNNy - 17.07.2014
Pretty nice and simple
Re: [INC] HPText - Pickup Text! -
Hirsw0w - 17.07.2014
Quote:
Originally Posted by nGen.SoNNy
Pretty nice and simple
|
thx, more comments?