[Ajuda] Marker Radar - 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] Marker Radar (
/showthread.php?tid=526575)
Marker Radar -
VeNuZ_ - 18.07.2014
Boas, comno poзo fazer para sу mebros da mesma equipa se vejam no radar ?
Tenho a seguinte variavel:
pawn Код:
SDPVars[playerid][TeamPlayer];
//Se o SDPVars[playerid][TeamPlayer] for = a 0 й da team A se for igual a 1 й da team b
Tenho o seguinte cуdigo quando comeзa a ronda:
pawn Код:
for(new u = 0; u <= MAX_PLAYERS; u++)
{
if(SDPVars[u][PlayingSD] == true)
{
if(SDPVars[u][TeamPlayer] == 0)
{
SetPlayerSkin(u, 137);
SetPlayerInterior(u, 10);
new Random = random(sizeof(DFSpawns));
SetPlayerPos(u, ATSpawns[Random][0], ATSpawns[Random][1], ATSpawns[Random][2]);
SetPlayerFacingAngle(u, ATSpawns[Random][3]);
SetPlayerColor(u, ColorTerrorist);
}else if(SDPVars[u][TeamPlayer] == 1){
SetPlayerSkin(u, 285);
SetPlayerInterior(u, 10);
new Random2 = random(sizeof(DFSpawns));
SetPlayerPos(u, DFSpawns[Random2][0], DFSpawns[Random2][1], DFSpawns[Random2][2]);
SetPlayerFacingAngle(u, DFSpawns[Random2][3]);
SetPlayerColor(u, ColorCTerrorist);
}
for(new t = 0; t < 9; t++)
TextDrawShowForPlayer(u, SDTexts[t]);
}
}
Obrigado.
Re: Marker Radar -
PT - 18.07.2014
aqui tens uma base
pawn Код:
for(new pt = 0; pt < MAX_PLAYERS; pt++)
{
if(SDPVars[playerid][TeamPlayer] == 0 && SDPVars[pt][TeamPlayer] == 0)
{
// Mostra marcas
}
else if(SDPVars[playerid][TeamPlayer] == 1 && SDPVars[pt][TeamPlayer] == 1)
{
// Mostra marcas
}
}