[Include] K_Map Icon Streamer
#1

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
Код:
K_CreateIcon(Float:x, Float:y, Float:z, markertype, color); 
K_DestroyIcon(iconid);
DestroyAllPlayerIcons(playerid);
Код:
K_DestroyIcon(iconid);
Destroys a icon.

Код:
K_CreateIcon(Float:x, Float:y, Float:z, markertype, color);
Creates a icon

Код:
DestroyAllPlayerIcons(playerid);
Destroys all player icons

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
I ACCEPT
Reply
#2

Well, at least you uploaded the right include this time.
Since you asked me to test it, here are some problems i found:

- You have to remove the OnGameModeExit-callback from the include, since it's usually already defined and will cause an error ("error 021: symbol already defined: "OnGameModeExit")
- The K_CreateIcon always returns '1' instead of the icon-id. Use break; or to stop the loop instead of return 1;
Reply
#3

Quote:
Originally Posted by Schneider
Посмотреть сообщение
Well, at least you uploaded the right include this time.
Since you asked me to test it, here are some problems i found:

- You have to remove the OnGameModeExit-callback from the include, since it's usually already defined and will cause an error ("error 021: symbol already defined: "OnGameModeExit")
- The K_CreateIcon always returns '1' instead of the icon-id. Use break; or to stop the loop instead of return 1;
Okay,thank you for testing.Hope you use it in your future scripts
Reply
#4

What's the advantage of this over streamer plugin?
Reply
#5

Quote:
Originally Posted by Excel™
Посмотреть сообщение
What's the advantage of this over streamer plugin?
For start when there are about 80 icons,some might not appear or you can even crash.
Reply
#6

Quote:
Originally Posted by Kruno88
Посмотреть сообщение
For start when there are about 80 icons,some might not appear or you can even crash.
Any evidence for that crap! Cвuse dat never happened with me ane streamer plugin is da professional ass!
Reply
#7

Quote:
Originally Posted by $$inSane
Посмотреть сообщение
Any evidence for that crap! Cвuse dat never happened with me ane streamer plugin is da professional ass!
First of all 'thug' you arent proving anything when your talking like that.
SetPlayerMapIcon can't show more than 100 map icons.
This include is easier to use and control.
Reply
#8

Quote:
Originally Posted by Kruno88
Посмотреть сообщение
First of all 'thug' you arent proving anything when your talking like that.
SetPlayerMapIcon can't show more than 100 map icons.
This include is easier to use and control.
'thug', i m a thug? i didnt even knew that! thats simple english though

Streamer take care of that nicely and with more options cum features than this include. So there is no need to publish dis here. Completely useless and ....all the shit! I am sure noone is even caring to click dat download -_-

EDIT: just for a sec i cared and clicked the download and holy shit its mediafire! FAAAuuuccckk :V
Reply
#9

I have one question. It seems like all the icons are global and you have DestroyAllPlayerIcons function. I don't see anywhere else a playerid parameter so how does that work?
Reply
#10

Why? Everybody has freedom of speech so everyone can express their opinions, although I agree flaming like $$inSane does is not necessary.

Dominik523 has a good point and the others asking you what the advantage of your script is, opposite of Incognito's Streamer plugin.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)