SA-MP Forums Archive
[AJUDA]Player no mapa - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]Player no mapa (/showthread.php?tid=278727)



[AJUDA]Player no mapa - [N]inja - 23.08.2011

tenho um servidor de tdm, quero fazer uma coisa mais ou menos assim
no mapa ali em baixo, tem a setinha indicando aonde os jogadores estгo, eu queria fazer pra somente quem for do time 1 enxergar o proprio time
tipo, eu sou do time 1, fulano tbm й do time 1, eu enxergo ele, e ele me enxerga
sу que nгo faзo a minima ideia de como fazer isso


Re: [AJUDA]Player no mapa - ViniBorn - 23.08.2011

Use SetPlayerMarkerForPlayer


Re: [AJUDA]Player no mapa - StrondA_ - 23.08.2011

duble sem querer :S


Re: [AJUDA]Player no mapa - StrondA_ - 23.08.2011

SetPlayerMarkerForPlayer existe?
correto:
ShowPlayerMarkers(true);
Bj...


Re: [AJUDA]Player no mapa - ViniBorn - 23.08.2011

Quote:
Originally Posted by Stronda_Novato
Посмотреть сообщение
SetPlayerMarkerForPlayer existe?
correto:
ShowPlayerMarkers(true);
Bj...
Tб bom espertгo. Entгo separa os нcones em dois grupos, do jeito que ele pediu, usando ShowPlayerMarkers (Y)


Re: [AJUDA]Player no mapa - [N]inja - 23.08.2011

tentei tentei e nгo consegui..
desativei a parada de aparecer todos os players do mapa,
tф tentando fazer pra tipo, somente quem for do team 1 ver as pessoas do team 1.
e as do team 2 ver as do team 2, entende?
to ficando louco ja ;s


Re: [AJUDA]Player no mapa - ViniBorn - 23.08.2011

pawn Код:
new bool:Equipe[MAX_PLAYERS];

for(new i = 0 ; i < MAX_PLAYERS ;i++)
    if(Equipe[id] == Equipe[i])
        SetPlayerMarkerForPlayer(id, i, 0xAA3333AA);
Este й um exemplo simples de como fazer


Re: [AJUDA]Player no mapa - StrondA_ - 24.08.2011

Viniborn, nгo quis ser melhor que ninguйm, apenas queria ajuda-lo, quando o topico foi iniciando nгo era o mesmo pedido, achei que ele queria fazer os jogadores aparecer no mapa. "SetPlayerMarkerForPlayer" no OnGameModeInit nгo pegaria certo. malz qualquer coisa.


Re: [AJUDA]Player no mapa - ViniBorn - 24.08.2011

Quote:
Originally Posted by Stronda_Novato
Посмотреть сообщение
Viniborn, nгo quis ser melhor que ninguйm, apenas queria ajuda-lo, quando o topico foi iniciando nгo era o mesmo pedido, achei que ele queria fazer os jogadores aparecer no mapa. "SetPlayerMarkerForPlayer" no OnGameModeInit nгo pegaria certo. malz qualquer coisa.
Sу achei essa sua suposta correзгo um tanto quanto irфnica e desprezadora.
Mas enfim, nгo tф aqui pra criar confusгo.


E sim, SetPlayerMarkerForPlayer existe. E й bastante usado.


Re: [AJUDA]Player no mapa - Macintosh - 24.08.2011

pawn Код:
public OnPlayerConnect(playerid)
{
     if(gTeam[playerid] == 1 && gTeam[giveplayerid] == 1) return ShowPlayerMarkers(1);
     else return ShowPlayerMarkers(0);
     return 1;
}