15.07.2014, 21:18
(
Последний раз редактировалось Hirsw0w; 15.07.2014 в 23:52.
)
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:
Functions:
Defines:
Example:
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!
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
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.
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
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;
}
* 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!