mardi 24 février 2015

[Include] K_Map Icon Streamer

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


Code:



K_CreateIcon(Float:x, Float:y, Float:z, markertype, color);

K_DestroyIcon(iconid);

DestroyAllPlayerIcons(playerid);




Code:



K_DestroyIcon(iconid);


Destroys a icon.




Code:



K_CreateIcon(Float:x, Float:y, Float:z, markertype, color);


Creates a icon




Code:



DestroyAllPlayerIcons(playerid);


Destroys all player icons



Definations


Code:



#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 - http://ift.tt/1FUoa5r







To download click on I accept the rules listen down below


Code:



Don't upload this .INC on any other file hosting website

Keep the credits to Kruno88



I ACCEPT




Aucun commentaire:

Enregistrer un commentaire