SA-MP Forums Archive
[Ajuda] Aparecer marca no mapa se for mesmo time - 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] Aparecer marca no mapa se for mesmo time (/showthread.php?tid=587350)



Aparecer marca no mapa se for mesmo time - luccagomes15 - 30.08.2015

Entгo pessoal, tava pesquisando sobre como fazer pra se duas pessoas forem da mesma ORG ou as duas forem COPs aparece-se no mini mapa pros amigos e inimigos

Como fazer isso?

Me disseram que seria assim no onplayerconnect, mas fica dando erro como se n tive-se definido giveplayerid
Код:
		// mostrar icone no mapa se for da mesma faction
		if(IsACop(playerid) && IsACop(giveplayerid) ) return ShowPlayerMarkers(1);
		else if(org[playerid] && org[giveplayerid] ) return ShowPlayerMarkers(1);
		else return ShowPlayerMarkers(0);



Re: Aparecer marca no mapa se for mesmo time - zPain - 30.08.2015

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