24.02.2015, 19:04
I've created my first include!Yey.I made a map icon streamer.I was bored and I decided to do it :/.This is waaayyy better then the SetPlayerMapIcon and it increases the limits of map icons.Barely,everything is explained in the script.
Fuctions
Destroys a icon.
Creates a icon
Destroys all player icons
Definations
How to use and download it
-just put the .INC file inside pawno/include
-delete all SetPlayerMapIcon from the GM.
-this creates a map icon for all players
-put your code in OnGamemodeInit
Map icons ids - https://sampwiki.blast.hk/wiki/MapIcons
To download click on I accept the rules listen down below
I ACCEPT
Fuctions
Код:
K_CreateIcon(Float:x, Float:y, Float:z, markertype, color); K_DestroyIcon(iconid); DestroyAllPlayerIcons(playerid);
Код:
K_DestroyIcon(iconid);
Код:
K_CreateIcon(Float:x, Float:y, Float:z, markertype, color);
Код:
DestroyAllPlayerIcons(playerid);
Definations
Код:
#define MAX_ICON_NUMBER 100//Max icons in your server #define TimeForCheckingIcon 1000//Timer for IconCHeckTimer #define DISTANCE_STREAM 200.0//Distance that the player will see the icons #define MAX_PLAYER_ICONS_SHOWN 15//Max icons taht can be shown to a player
How to use and download it
-just put the .INC file inside pawno/include
-delete all SetPlayerMapIcon from the GM.
-this creates a map icon for all players
-put your code in OnGamemodeInit
Map icons ids - https://sampwiki.blast.hk/wiki/MapIcons
To download click on I accept the rules listen down below
Код:
Don't upload this .INC on any other file hosting website Keep the credits to Kruno88