SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 17/10/2011, 10:54 AM   #1
OKStyle
High-roller
 
OKStyle's Avatar
 
Join Date: May 2008
Location: Russia, Orenburg Money: GTA$ 999,999,999
Posts: 3,125
Reputation: 142
Default Map-radar

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!
__________________
O.K.Style™ Laboratory
Kalcor: "... it's makes the game look like it's not GTA. This mod is called San Andreas Multiplayer. It's not a custom game engine which you can script..."
OKStyle is offline   Reply With Quote
Old 17/10/2011, 11:17 AM   #2
Igorek
Big Clucker
 
Igorek's Avatar
 
Join Date: Oct 2010
Posts: 110
Reputation: 74
Default Re: Map-radar

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.
Igorek is offline   Reply With Quote
Old 17/10/2011, 11:20 AM   #3
KingHual
Banned
 
Join Date: Jun 2010
Location: Bulgaria
Posts: 2,286
Reputation: 1389
Default Re: Map-radar

True, I like it too :P
KingHual is offline   Reply With Quote
Old 17/10/2011, 11:21 AM   #4
MakuPL
Little Clucker
 
MakuPL's Avatar
 
Join Date: Sep 2011
Location: Poland
Posts: 29
Reputation: 31
Default Re: Map-radar

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;
MakuPL is offline   Reply With Quote
Old 17/10/2011, 12:20 PM   #5
[RLG]Zepp
Little Clucker
 
Join Date: Apr 2009
Posts: 32
Reputation: 0
Default Re: Map-radar

Is this for the cool 0.3c version or for the stupid 0.3d version?
[RLG]Zepp is offline   Reply With Quote
Old 17/10/2011, 12:30 PM   #6
KingHual
Banned
 
Join Date: Jun 2010
Location: Bulgaria
Posts: 2,286
Reputation: 1389
Default Re: Map-radar

You can only use textures as you want in the "stupid" 0.3d version so it's for 0.3d
KingHual is offline   Reply With Quote
Old 17/10/2011, 12:39 PM   #7
OKStyle
High-roller
 
OKStyle's Avatar
 
Join Date: May 2008
Location: Russia, Orenburg Money: GTA$ 999,999,999
Posts: 3,125
Reputation: 142
Default Re: Map-radar

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
__________________
O.K.Style™ Laboratory
Kalcor: "... it's makes the game look like it's not GTA. This mod is called San Andreas Multiplayer. It's not a custom game engine which you can script..."

Last edited by OKStyle; 17/10/2011 at 01:18 PM.
OKStyle is offline   Reply With Quote
Old 17/10/2011, 10:50 PM   #8
Kazuo
Big Clucker
 
Kazuo's Avatar
 
Join Date: Sep 2011
Location: Indonesia
Posts: 166
Reputation: 7
Default Re: Map-radar

look nice bro
Kazuo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Radar away ? iReaLCFG Help Archive 5 27/12/2010 01:55 PM
[Help] How to: see only Team(on Radar) + create Radar? BMGP Help Archive 2 24/11/2009 04:07 PM


All times are GMT. The time now is 09:44 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.