01.01.2016, 10:52
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:
And Happy New Year!
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); } //...