SA-MP Forums Archive
[Pedido] Comando de Teleporte com Checkpoint - 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: [Pedido] Comando de Teleporte com Checkpoint (/showthread.php?tid=409717)



Comando de Teleporte com Checkpoint - JuniorRock - 22.01.2013

Eu queria que alguem criasse um comando de teleporte para um parkour que adiciona-se um checkpoint no final,que ao chegar nesse checkpoint o player ganha-se 8000 e fosse setado(GM Mata-Mata por isso irei colocar parkour)


Re: Comando de Teleporte com Checkpoint - JonathanFeitosa - 22.01.2013

https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);
    return 1;
}
 
public OnPlayerEnterCheckpoint(playerid)
{
    GivePlayerMoney(playerid, 1000);
    DisablePlayerCheckpoint(playerid);
    print("Vocк Chegou !");
    return 1;
}



Re: Comando de Teleporte com Checkpoint - JuniorRock - 22.01.2013

Vou ver se funcionou e ja edito

@EDIT

Deu 4 erros,Como eu disse,queria o comando tambem,o Comando junto com o Checkpoint,ai so deixar as cordenadas,que eu edito na hora....


Re: Comando de Teleporte com Checkpoint - arakuta - 22.01.2013

SetPlayerPos(playerid,x,y,z);

Quais foram os 4 erros? O codigo do jonathan parece estar correto...