[HELP] playermarkers
#1

ey
im working on a TDM and i wat that you can only see youre own teammates on the map.

how do i do this?
Reply
#2

Read that page from wiki: SetPlayerMarkerForPlayer
Reply
#3

that doesnt help me
i know how to work with ShowPlayerMarkerForPlayer

but what i tryd doesnt work
Reply
#4

pawn Код:
for(new i=0; i < MAX_PLAYERS; i++)
{
  if(gTeam[i] == YOUR_TEAM)
  {
    SetPlayerMarkerForPlayer(playerid, showplayerid, color);
  }
  else if(gTeam[i] == OTHERR_TEAM)
  {
    SetPlayerMarkerForPlayer(playerid, showplayerid, color);
  }
}
playerid The player whose view you want to change
showplayerid The player whose color will be changed
color New color. Set the alpha part to 00 for an invisible blip. This works because 00 will set the transparency to nothing, which is invisible.
Reply
#5

thank,finaly something that helpes me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)