14.03.2013, 10:31
(
Последний раз редактировалось CreativityLacker; 14.03.2013 в 15:33.
Причина: updated
)
Map icons - V0.5
This is the FIRST BETA of map icons enhancement, and currently has only 2 simple functions -
V0.50 released
pawn Код:
AttachMapIconToVehicle(iconid, vehicleid, markertype, color, style)
GetIconType(iconid)
AttachMapIconToObject(iconid, objectid, markertype, color, style);
AttachMapIconToPlayer(iconid, objectid, markertype, color, style);
DeattachMapIconFromEverything(iconid);
pawn Код:
DestroyMapIcon(iconid);
GetUsedIcons()
GetUnusedIcons()
GetUnusedIconID()
I've tested it myself and it works perfectly fine for now, report any bugs/performance issues within the few hours, I've done this in about an hour, so don't criticize, feel free to report any immediate bugs.
If you know a better way to do these, feel free to suggest, this is just the FIRST BUILD, the very basic structure, I'm working on a better one, stay tuned.
http://www.mediafire.com/download.php?ljx1ebqz3flwlf3
V0.50 = http://www.mediafire.com/download.php?k57b18qdoy29dr1
V0.50 = http://pastebin.com/rhqz9C6b
GetMapIconType()
returns -
TYPE_NORMAL (0) if MAP ICON IS NOT ATTACHED TO ANYTHING
TYPE_ATTACHED_TO_VEHICLE (1) if MAP ICON IS ATTACHED TO CAR
TYPE_ATTACHED_TO_OBJECT (2) if MAP ICON IS ATTACHED TO OBJECT
TYPE_ATTACHED_TO_PLAYER (3) if MAP ICON IS ATTACHED TO PLAYER