Another question.
#1

Is there a function or something to make the player markers only be shown by one team?

If so can you show me it ?

Thanks.
Reply
#2

Bump .
Reply
#3

https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Reply
#4

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
Could you explain for a bit i dont get the wiki .
Reply
#5

So for example you want say the police do /follow [id] it sets a marker for them?
Reply
#6

ok example :
I have 4 teams 3 of them cant see the markers 1 of them can so for three teams the markers are disabled and for 1 team the markers are enabled .

That is what i need to know.
Reply
#7

pawn Код:
foreach(new i : Player)
{
     if(GetPlayerTeam(i) == GetPlayerTeam(playerid))
     {
          SetPlayerMarkerForPlayer(i, playerid, color);
     }
     return 1;
}
this is an example
Reply
#8

Huh i dont get it i added it changed it a bit but it doesnt work

pawn Код:
foreach(new i : Player)
{
     if(gTeam[i] == 2 && gTeam[playerid] == 1)
     {
          SetPlayerMarkerForPlayer(i, playerid, civic_COLOUR);
     }
     else if(gTeam[i] == 3 && gTeam[playerid] == 1)
     {
        SetPlayerMarkerForPlayer(i, playerid,militia_COLOUR);
     }
     else if(gTeam[i] == 4 && gTeam[playerid] == 1)
     {
        SetPlayerMarkerForPlayer(i, playerid,criminal_COLOUR);
     }
     else if(gTeam[i] == 5 && gTeam[playerid] == 1)
     {
        SetPlayerMarkerForPlayer(i, playerid,refunder_COLOUR);
     }
Reply
#9

Bump
Reply
#10

Bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)