2nd Checkpoint does not stream in.
#2

You can only show one checkpoint at a time. Use DisablePlayerCheckpoint (see description at top of that page) when a player enters a checkpoint, before creating the next one.

Using a streamer will be easier as it does a lot of the work for you (creating/destroying things for you). Another benefit of using a streamer is that CreateCheckpoint (or equivalent) usually returns a checkpoint id, so you don't need to do range checks, you can just compare IDs.

But if your not using a streamer do something like this:

Код:
if(IsPlayerInRangeOfPoint(playerid, 3, 2644.8074,-1442.7813,30.2813))
{
    CallRemoteFunction("MoneySet", "dd", playerid, 5);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "[Sweeper] You have collected $5 on your first checkpoint.");

    //disable current cp
    DisablePlayerCheckpoint(playerid);

    //Show next one
    SetPlayerCheckpoint(playerid, 2645.2512,-1586.4508,14.4760, 3.0);
}
else if(IsPlayerInRangeOfPoint(playerid, 3, 2645.2512,-1586.4508,14.4760))
{
    CallRemoteFunction("MoneySet", "dd", playerid, 5);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "[Sweeper] You have collected $5 on your second checkpoint.");
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, 2679.9390,-1655.0223,11.0642, 3.0);
}
//...
And Happy New Year!
Reply


Messages In This Thread
2nd Checkpoint does not stream in. - by Write - 01.01.2016, 10:24
Re: 2nd Checkpoint does not stream in. - by iggy1 - 01.01.2016, 10:52
Re: 2nd Checkpoint does not stream in. - by Write - 01.01.2016, 13:35
Re: 2nd Checkpoint does not stream in. - by Kucin666 - 01.01.2016, 13:50
Re: 2nd Checkpoint does not stream in. - by Arithmetic - 01.01.2016, 18:40
Re: 2nd Checkpoint does not stream in. - by Write - 01.01.2016, 18:41

Forum Jump:


Users browsing this thread: 2 Guest(s)