SetPlayerMarkerForPlayer bugs up
#1

pawn Код:
if(GetTeam(i) != 2)
            {
                ForEach(a,MAX_SLOTS)
                {
                    if(PlayerI[i][Team] == PlayerI[a][Team])
                    {
                        if(PlayerI[a][UsedSpotted] == 0)
                        {
                            SetPlayerMarkerForPlayer( i, a,  GetPlayerColor( a ) );
                        }
                        else
                        {
                            SetPlayerMarkerForPlayer( i, a,  0xFF0000FF );
                        }
                    }
                    else
                    {
                        SetPlayerMarkerForPlayer( i, a, ( GetPlayerColor( a ) & 0xFFFFFF00 ) );
                    }
                }
            }
the code should make team A invisible on radar for team B, same with team B to team A. Ok, it works fine when I do this, but when player A keeps getting closer to player B it shows the marker for some milisecs when he gets close enough (i.e 500meters) though, it makes it invisible after again and works fine, is there any way to fix that little appear and disappear?
Reply
#2

help..
Reply
#3

Can u give us more of the script cuz' IDK what is you ''i'' , ''a'' , ''b'' and this other shit
Reply
#4

whats there more to know, take the code, re-write it regarding to your script and test out with 2people,whenever you keep getting closer from 1000 meters it shows the marker in the radar. Code isn't the problem here. As I see you're raw on this in any way, so stop free posting.
Reply
#5

I saw your code, and i noticed you didnt try this:

https://sampwiki.blast.hk/wiki/LimitPlayerMarkerRadius

You could limit the marker radius manually on each team, and set it to minimum to make it invisible for the other team.
If it helped, yea, i would like the 7th rep xD
Reply
#6

The function doesn't work, I've set it to 1.0, and it still shows it even if I don't make the markers invisible yet
Reply
#7

Hmm, could i have a look what you tried?
The function should work, because it does for me, hmm..
Reply
#8

pawn Код:
LimitPlayerMarkerRadius(1.0);
I've put this ongamemodeinit in a fresh new script, and it doesn't do anything.
Reply
#9

Okay, try another value. I am using 100.0 As my default, so maybe it works for you too ?
Reply
#10

Doesn't work.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)