SA-MP Forums Archive
[INC/STREAM] IconControl V.1.1 »Mapicon Streamer« - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [INC/STREAM] IconControl V.1.1 »Mapicon Streamer« (/showthread.php?tid=27306)



[INC/STREAM] IconControl V.1.1 »Mapicon Streamer« - Rafelder_GRF - 23.02.2008

IconControl V.1.1
»What is it?
-Its a mapicon streamer which streams unless mapicons

»How many mapicons does IconControl stream?
-I setted the limit to 1000 but you can edit it

»Are there any bugs?
-No, but if you find bugs report it please

_________________________________________________

»Functions:

CreateMapIcon(markerid, color, Float:X, Float:Y, Float:Z);
Create a mapicon.

DestroyMapIcon(iconid);
Destroy a mapicon.

ResetMapIconVariables(playerid)
Reset mapicon variables for a player.

IsValidMapIcon(iconid);
This functions checks if it is a valid map icon.

IsIconActivatedForPlayer(playerid, iconid);
This functions checks if the mapicon is activated for a player.

IsIconActivatedForAll(iconid);
This functions checks if the mapicon is avtivated for every player.

SetMapIconPos(iconid, Float:X, Float:Y, Float:Z);
Change the mapicon position.

SetMapIconIcon(iconid, markerid, color);
Change the mapicon icon.

SetMapIconColor(iconid, color);
Change the mapicon color.

GetMapIconPos(iconid, &Float:X, &Float:Y, &Float:Z);
Return the coordinates of a mapicon.

GetMapIconIcon(iconid);
Return the mapicon icon.

GetMapIconColor(iconid);
Return the mapicon color.

ShowMapIconForPlayer(playerid, iconid);
Show mapicon for a player.

ShowMapIconForAll(iconid);
Show mapicon for all.

ShowAllMapIconForPlayer(playerid);
Show every mapicon for player.

ShowAllMapIconForAll();
Show every mapicon for all.

DisableMapIconForPlayer(playerid, iconid);
Disable mapicon for a player.

DisableMapIconForAll(iconid);
Disable mapicon for all.

DisableAllMapIconForPlayer(playerid);
Disable every mapicon for a player.

DisableAllMapIconForAll();
Disable every mapicon for all.

_________________________________________________

»How to install?

-Put the include in your include order.
-Write at the beginning of your script: #include <MapIconStreamer>
-Write under OnPlayer(Dis)connect: ResetMapIconVariables(playerid);

_________________________________________________


Download V.1.1:


New Version: Pastebin: http://pastebin.com/f37785af8
Bugged Version: Pastebin: http://pastebin.ca/915089
Rapidshare: http://rapidshare.com/files/94238514...eamer.inc.html


Re: [INC] IconControl V.1.0 »Mapicon streamer« - Jashugan - 23.02.2008

that looks an awful lot like a version of tAxI's streamer with renamed crap


Re: [INC] IconControl V.1.0 »Mapicon streamer« - snipe69 - 23.02.2008

nice include men :P


Re: [INC] IconControl V.1.0 »Mapicon streamer« - Jashugan - 23.02.2008

I tested this locally and it seems to work without too much CPU usage, im gonna test it online right now


Re: [INC] IconControl V.1.1 »Mapicon streamer« - nate660 - 23.02.2008

If this works like its supposed to Great job i will be using this for my houses so people can no if there buyable or not


Re: [INC] IconControl V.1.1 »Mapicon streamer« - Amit_B - 23.02.2008

very very nice!!


Re: [INC/STREAM] IconControl V.1.1 »Mapicon Streamer« - -John- - 23.02.2008

nice one


Re: [INC/STREAM] IconControl V.1.1 »Mapicon Streamer« - Jashugan - 23.02.2008

its been running fine here for a few hours so far, nice job


Re: [INC/STREAM] IconControl V.1.1 »Mapicon Streamer« - Rafelder_GRF - 23.02.2008

Quote:
Originally Posted by Jashugan
its been running fine here for a few hours so far, nice job
Where?


Re: [INC/STREAM] IconControl V.1.1 »Mapicon Streamer« - Jashugan - 23.02.2008

IP at the bottom of my signature.