Checkpoint help
#9

Then if you would go in the first, it destroys that one and let a new one appear; then if you enter the new one, it destroys and create a new checkpoint at the same position?

EDIT:
I've tried this:
pawn Код:
TCP[1] = CreateDynamicCP(1,2,3,5,-1,-1,playerid,1000);
            TogglePlayerDynamicCP(playerid, TCP[1], 1);
But that didnt show a checkpoint at all

EDIT of EDIT:
I've changed the range now, and it does display now.. (dumb me :S)
But now, when i go to the first checkpoint (TCP[1]), and enter it with vehicle, or outside a vehicle; it doesnt show up the next checkpoint

pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == TCP[1])
    {
        TCP[2] = CreateDynamicCP(2562.2910,-2412.1013,13.6345,5,-1,-1,playerid,10000);
        TogglePlayerDynamicCP(playerid, TCP[2], 1);
        DestroyDynamicCP(TCP[1]);
        SendClientMessage(playerid, COLOR_GREEN,"You entered the checkpoint!!");
        return 1;
    }
   
    if(checkpointid == TCP[2])
    {
   
        SendClientMessage(playerid, COLOR_GREEN,"You delivered your goods, and got $5000!");
        GivePlayerMoney(playerid, 5000);
        return 1;
    }
    return 1;
}
Another edit... lol

pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == TCP[1])
    {
        TCP[2] = CreateDynamicCP(2562.2910,-2412.1013,13.6345,5,-1,-1,playerid,10000);
        TogglePlayerDynamicCP(playerid, TCP[1], 0);
        TogglePlayerDynamicCP(playerid, TCP[2], 1);
        SendClientMessage(playerid, COLOR_GREEN,"You entered the checkpoint!!");
        return 1;
    }
   
    if(checkpointid == TCP[2])
    {
   
        SendClientMessage(playerid, COLOR_GREEN,"You delivered your goods, and got $5000!");
        GivePlayerMoney(playerid, 5000);
        TogglePlayerDynamicCP(playerid, TCP[1], 0);
        TogglePlayerDynamicCP(playerid, TCP[2], 0);
        return 1;
    }
    return 1;
}
I've made it like this now, and when im alone, i can enter the first checkpoint and then the second will appear. But now when im with 2 players, and we both do the same 'mission', then he can enter the checkpoint & let the other one appear, but when i go in it; the other one DOESNT appear..

He enter checkpoint > CP1 dissapears, CP2 appears
Me enter checkpoint > CP1 doesnt dissapear, CP2 doesnt appear

What to do? :$
Reply


Messages In This Thread
Checkpoint help - by Wesley221 - 28.05.2011, 17:44
Re: Checkpoint help - by Kush - 28.05.2011, 18:10
Re: Checkpoint help - by Wesley221 - 28.05.2011, 18:21
Re: Checkpoint help - by Jay. - 28.05.2011, 18:31
Re: Checkpoint help - by Wesley221 - 28.05.2011, 18:52
Re: Checkpoint help - by sim_sima - 28.05.2011, 22:35
Re: Checkpoint help - by Wesley221 - 29.05.2011, 07:32
Re: Checkpoint help - by Ash. - 29.05.2011, 07:40
Re: Checkpoint help - by Wesley221 - 29.05.2011, 07:41
Re: Checkpoint help - by Wesley221 - 31.05.2011, 17:31

Forum Jump:


Users browsing this thread: 1 Guest(s)