[Include] [INC] HPText - Pickup Text!
#1

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!
Reply
#2

Awesome!!
Reply
#3

Quote:
Originally Posted by GuyYahood1
Посмотреть сообщение
Awesome!!
thx,
I fix a bug with the code the link is update.
Reply
#4

comments please. I want to know what you think about it.
Reply
#5

Pretty nice and simple
Reply
#6

Quote:
Originally Posted by nGen.SoNNy
Посмотреть сообщение
Pretty nice and simple
thx, more comments?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)