[Ajuda] Checkpoint no 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] Checkpoint no radar (
/showthread.php?tid=597709)
Checkpoint no radar -
Lutherdeck - 03.01.2016
Estou criando um GM de RPG, e o sistema de emprego quer fazer que vб na agencia de empregos e pega encaminhamento, por exemplo exemplo a profissгo de Mecвnico, ai vai aparecer no mapa um нcone vermelho no lugar aonde ele tem quer ir, mais quando ele passa perto de outro Checkpoint, como tunningCar, o нcone vermelho que e o destino desaparece, e aparece esse нcone no Checkpoint.
cуdigo que uso pra marcar o destino:
HTML Code:
SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);
Re: Checkpoint no radar -
BykiLler - 03.01.2016
usar o
SetPlayerMapIcon
Re: Checkpoint no radar -
Lutherdeck - 03.01.2016
Mais ai so aparece quando chegar perto... nгo й ?
Re: Checkpoint no radar -
BykiLler - 03.01.2016
voce pode fazer isso por loop
Re: Checkpoint no radar -
Coringa_Vilao - 04.01.2016
PHP Code:
cmd:ir(playerid){
SetPlayerCheckpoint(playerid, 1203.6449, -1335.4172, 13.3984, 8.0);
return 1;
}
public OnPlayerEnterCheckpoint(playerid){ // Ao Chegar no Checkpoint
if(PlayerToPoint(8.0, playerid, 1203.6449, -1335.4172, 13.3984)){
GameTextForPlayer(playerid, "~g~Chegou no Local!", 5000, 1);
DisablePlayerCheckpoint(playerid);
}
return 1;
}