hide player
#1

How can we hide player icon from map so other players can't able to see him on map.
Reply
#2

Quote:
Originally Posted by MA_proking
Посмотреть сообщение
How can we hide player icon from map so other players can't able to see him on map.
pawn Код:
for ( new i_playerid; i_playerid < MAX_PLAYERS; i_playerid++ )
    {
        SetPlayerMarkerForPlayer(playerid, i_playerid, 0xFFFFFF00);
    }
Guess that's it.. Not sure.
Reply
#3

can we able to set this for team. I mean only team mates able to see players other not?
Reply
#4

Quote:
Originally Posted by MA_proking
Посмотреть сообщение
can we able to set this for team. I mean only team mates able to see players other not?
Ofcourse, just change the code a little:

pawn Код:
for ( new i_playerid; i_playerid < MAX_PLAYERS; i_playerid++ )
    {
        if(gTeam[i_playerid] == gTeam[playerid]) continue;
        SetPlayerMarkerForPlayer(playerid, i_playerid, 0xFFFFFF00);
    }
Reply
#5

Thanks it works +1 rep for help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)