SA-MP Forums Archive
[Ajuda] 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: [Ajuda] CheckPoint (/showthread.php?tid=283734)



[Ajuda] CheckPoint - Lipe_Stronda - 16.09.2011

Eu criei uma gambiarra aqui, mais nao to conseguindo fazer funcionar, eu ja defini tudo copilo normal, mais ai quando eu entro dentro dos checkpoints, nao acontece nada, alguem ajuda?

pawn Код:
if(IsPlayerInCheckpoint(Checkpoint1))
    {
        Checkpoint2 = SetPlayerCheckpoint(playerid, -2078.9246,-167.7930,35.3203,05);
    }
    if(IsPlayerInCheckpoint(Checkpoint2))
    {
        Checkpoint3 = SetPlayerCheckpoint(playerid, -2055.8943,-170.0569,35.3203,05);
    }
    if(IsPlayerInCheckpoint(Checkpoint3))
    {
        Checkpoint4 = SetPlayerCheckpoint(playerid, -2066.6545,-151.8407,35.3203,05);
    }
    if(IsPlayerInCheckpoint(Checkpoint4))
    {
        Checkpoint5 = SetPlayerCheckpoint(playerid, -2054.3389,-141.4836,35.3203,05);
    }
    if(IsPlayerInCheckpoint(Checkpoint5))
    {
        Checkpoint6 = SetPlayerCheckpoint(playerid, -2046.6318,-163.2219,35.3203,05);
    }
    if(IsPlayerInCheckpoint(Checkpoint6))
    {
        Checkpoint7 = SetPlayerCheckpoint(playerid, -2063.8262,-209.4338,35.3203,05);
    }
    if(IsPlayerInCheckpoint(Checkpoint7))
    {
        Checkpoint8 = SetPlayerCheckpoint(playerid, -2086.9343,-180.6604,35.3203,05);
    }
    if(IsPlayerInCheckpoint(Checkpoint8))
    {
        Checkpoint9 = SetPlayerCheckpoint(playerid, -2085.8259,-257.1105,35.3203,05);
    }
    if(IsPlayerInCheckpoint(Checkpoint9))
    {
        Checkpoint10 = SetPlayerCheckpoint(playerid, -2043.8909,-263.2249,35.3203,05);
    }
    if(IsPlayerInCheckpoint(Checkpoint10))
    {
        Checkpoint11 = SetPlayerCheckpoint(playerid, -2023.0986,-134.7571,35.2853,05);
    }
    if(IsPlayerInCheckpoint(Checkpoint11))
    {
        CarroLic[playerid] = 1;
        SpawnPlayer(playerid);
        SendClientMessage(playerid, -1,"Vocк passou no teste ;D ");
    }



Re: [Ajuda] CheckPoint - WLSF - 16.09.2011

isso tб dentro do OnPlayerEnterCheckpoint?


Re: [Ajuda] CheckPoint - Josma_cmd - 16.09.2011

O raio de alcance estб pequeno e o certo seria um numero fracionado como 5.0
pawn Код:
Checkpoint10 = SetPlayerCheckpoint(playerid, X, Y, Z, 5.0);



Re: [Ajuda] CheckPoint - [O.z]Caroline - 16.09.2011

tenta:
pawn Код:
new CheckCount[MAX_PLAYERS];

public OnPlayerEnterCheckpoint(playerid)
{
    DisablePlayerCheckpoint(playerid);
    if(CheckCount[playerid] == 0)   SetPlayerCheckpoint(playerid, -2078.9246,-167.7930,35.3203,05.0);
    if(CheckCount[playerid] == 1)   SetPlayerCheckpoint(playerid, -2055.8943,-170.0569,35.3203,05.0);
    if(CheckCount[playerid] == 2)   SetPlayerCheckpoint(playerid, -2066.6545,-151.8407,35.3203,05.0);
    if(CheckCount[playerid] == 3)   SetPlayerCheckpoint(playerid, -2054.3389,-141.4836,35.3203,05.0);
    if(CheckCount[playerid] == 4)   SetPlayerCheckpoint(playerid, -2046.6318,-163.2219,35.3203,05.0);
    if(CheckCount[playerid] == 5)   SetPlayerCheckpoint(playerid, -2063.8262,-209.4338,35.3203,05.0);
    if(CheckCount[playerid] == 6)   SetPlayerCheckpoint(playerid, -2086.9343,-180.6604,35.3203,05.0);
    if(CheckCount[playerid] == 7)   SetPlayerCheckpoint(playerid, -2085.8259,-257.1105,35.3203,05.0);
    if(CheckCount[playerid] == 8)   SetPlayerCheckpoint(playerid, -2043.8909,-263.2249,35.3203,05.0);
    if(CheckCount[playerid] == 9)   SetPlayerCheckpoint(playerid, -2023.0986,-134.7571,35.2853,05.0);
    if(CheckCount[playerid] == 10)
    {
        CarroLic[playerid] = 1;
        SpawnPlayer(playerid);
        SendClientMessage(playerid, -1,"Vocк passou no teste ;D ");
    }
    return CheckCount[playerid]++;
}



Re: [Ajuda] CheckPoint - WLSF - 16.09.2011

Quote:
Originally Posted by Josma_cmd
Посмотреть сообщение
O raio de alcance estб pequeno e o certo seria um numero fracionado como 5.0
pawn Код:
Checkpoint10 = SetPlayerCheckpoint(playerid, X, Y, Z, 5.0);
isso interferб em quando entrar dentro do checkpoint?:O


Re: [Ajuda] CheckPoint - Josma_cmd - 16.09.2011

Quote:
Originally Posted by Willian_Luigi
Посмотреть сообщение
isso interferб em quando entrar dentro do checkpoint?:O
Ao meu ver um checkpoint com raio de 05 nгo й grande o bastante...

Lipe, podes tambйm usar CheckPointHideForPlayer(playerid, Antigo CP); antes do SetPlayerCheckpoint


Re: [Ajuda] CheckPoint - [O.z]Caroline - 16.09.2011

Quote:
Originally Posted by Josma_cmd
Посмотреть сообщение
Ao meu ver um checkpoint com raio de 05 nгo й grande o bastante...

Lipe, podes tambйm usar CheckPointHideForPlayer(playerid, Antigo CP); antes do SetPlayerCheckpoint
CheckpointHideForPlayer = DisablePlayerCheckpoint(playerid);


Re: [Ajuda] CheckPoint - Josma_cmd - 16.09.2011

Quote:
Originally Posted by [O.z]Caroline
Посмотреть сообщение
CheckpointHideForPlayer = DisablePlayerCheckpoint(playerid);
Obrigado pela correзгo.


Re: [Ajuda] CheckPoint - Lipe_Stronda - 16.09.2011

Carol, nao funfo
Josma, fico maior mais nao aconteceu nada.

screen.




Re: [Ajuda] CheckPoint - [O.z]Caroline - 16.09.2011

Quote:
Originally Posted by Lipe_Stronda
Посмотреть сообщение
Carol, nao funfo
Josma, fico maior mais nao aconteceu nada.
screen.
informe oque realmente aconteceu.