[Ajuda] Checkpoint
#1

Boa noite rapaziada, estou com um leve problema referente a checkpoint.

Apos o player passar por um determinado checkpoint em vez de mostrar o prуximo ele retorna para o primeiro

pawn Code:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == BusCP[0])
    {
        BusCP[1] = CreateDynamicCP(1547.3561,-2284.1187,13.4841,3.0,-1,-1,playerid,1000);
    GameTextForPlayer(playerid, "Aguarde passageiros...", 3000, 3);
        TogglePlayerControllable(playerid,0);
        SetTimerEx("Linhas",3000, false,"i",playerid);
        DestroyDynamicCP(BusCP[0]);
    }
    if(checkpointid == BusCP[1])
    {
        BusCP[2] = CreateDynamicCP(1400.5472,-2284.7380,13.4667,3.0,-1,-1,playerid,1000);
        DestroyDynamicCP(BusCP[1]);
    }
    if(checkpointid == BusCP[2])
    {
        BusCP[3] = CreateDynamicCP(1368.4954,-2173.5496,13.4840,3.0,-1,-1,playerid,1000);
        DestroyDynamicCP(BusCP[2]);
    }
     return 1;
}
Agradeзo a ajuda <3
Reply


Messages In This Thread
Checkpoint - by iWiNeR - 11.05.2018, 23:10
Re: Checkpoint - by Ermanhaut - 12.05.2018, 00:09
Re: Checkpoint - by iWiNeR - 12.05.2018, 00:24
Re: Checkpoint - by Ermanhaut - 12.05.2018, 00:55
Re: Checkpoint - by iWiNeR - 12.05.2018, 01:48
Re: Checkpoint - by FerrariL - 12.05.2018, 01:54
Re: Checkpoint - by iWiNeR - 12.05.2018, 02:10
Re: Checkpoint - by FerrariL - 12.05.2018, 02:22
Re: Checkpoint - by iWiNeR - 12.05.2018, 02:27
Re: Checkpoint - by Minerva - 12.05.2018, 02:34
Re: Checkpoint - by iWiNeR - 12.05.2018, 02:47
Re: Checkpoint - by Ermanhaut - 12.05.2018, 13:58
Re: Checkpoint - by iWiNeR - 12.05.2018, 14:30
Re: Checkpoint - by iWiNeR - 12.05.2018, 17:36
Re: Checkpoint - by Ermanhaut - 12.05.2018, 17:46
Re: Checkpoint - by iWiNeR - 12.05.2018, 19:08
Re: Checkpoint - by iWiNeR - 13.05.2018, 23:08

Forum Jump:


Users browsing this thread: 4 Guest(s)