SA-MP Forums Archive
[FilterScript] Map-radar - 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: [FilterScript] Map-radar (/showthread.php?tid=290834)



Map-radar - OKStyle - 17.10.2011

I present to you my next script, this time it is a map-radar of players with some info about them.

We both started working with this guy, but he published the beta version, whereas I decided to finish my first.

Control on the dialog;
Support any amount of players;
The icons of players are depicted as square as on the original map;
You have opportunity to include additional information about the players on the radar;
And customize this information very simple
You can change between Low Res. and High Res. maps;

pawn Code:
/map - for start using radar
Full-screen non-transperent map;
The script included in the color for more than 500 players (the so-called "rainbow array") - no color is repeated.

The script also includes a 83 NPCs (for test radar) - you must deleted them and uncomment 397 line.

http://pastebin.com/Lcr3ZKqu

This is not plagiarism, it is the parallel development!


Re: Map-radar - Igorek - 17.10.2011

Quote:
Originally Posted by OKStyle
View Post
We both started working with this guy, but he published the beta version, whereas I decided to finish my first.
But I do a bit earlier finished)
The works are different and it's great.


Re: Map-radar - KingHual - 17.10.2011

True, I like it too :P


Re: Map-radar - MakuPL - 17.10.2011

A more optimal timer:
pawn Code:
for(new i, j = GetMaxPlayers(); i != j; i++)
{
    TextDrawHideForAll(Player[i]);
    TextDrawDestroy(Player[i]);
    TextDrawHideForAll(Stats[i]);
    TextDrawDestroy(Stats[i]);
}
new Float:x, Float:y, Float:z, PlayerName[MAX_PLAYER_NAME], Float:HP, Float:AP, string[128];
for(new i, j = GetMaxPlayers(); i != j; i++)
{
    if(!IsPlayerConnected(i)) continue;
//  if(IsPlayerNPC(i)) continue;
    GetPlayerPos(i, x, y, z);
    if(y < -3000 || y > 3000 || x < -3000 || x > 3000) continue;
    new Float:PosX, Float:PosY;
[.....]
replace with
pawn Code:
static Float:x, Float:y, Float:z, PlayerName[MAX_PLAYER_NAME], Float:HP, Float:AP, string[128];
for(new i, j = GetMaxPlayers(); i != j; i++)
{
    TextDrawHideForAll(Player[i]);
    TextDrawDestroy(Player[i]);
    TextDrawHideForAll(Stats[i]);
    TextDrawDestroy(Stats[i]);

    if(!IsPlayerConnected(i)) continue;
//  if(IsPlayerNPC(i)) continue;
    GetPlayerPos(i, x, y, z);
    if(y < -3000 || y > 3000 || x < -3000 || x > 3000) continue;
    new Float:PosX, Float:PosY;



Re: Map-radar - [RLG]Zepp - 17.10.2011

Is this for the cool 0.3c version or for the stupid 0.3d version?


Re: Map-radar - KingHual - 17.10.2011

You can only use textures as you want in the "stupid" 0.3d version so it's for 0.3d


Re: Map-radar - OKStyle - 17.10.2011

Quote:
Originally Posted by MakuPL
View Post
A more optimal timer
This was not done out of ignorance, if differently - blocks on the map is not there a special meaning in the order and number of cycles.

May be, when the limit of textdraws will increase to ten thousands, I can make SA-map by them


Re: Map-radar - Kazuo - 17.10.2011

look nice bro