01.01.2016, 10:24
It won't check in. The first one checks in, but the second doesn't. Like when I enter the sweeper, I get the checkpoint, I go to the checkpoint and collect my $5 I want it to keep going to the next checkpoint and the next. But there's no more checkpoints after the first one, why?
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
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.");
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.");
SetPlayerCheckpoint(playerid, 2679.9390,-1655.0223,11.0642, 3.0);
}
else if(IsPlayerInRangeOfPoint(playerid, 3, 2679.9390,-1655.0223,11.0642))
{
CallRemoteFunction("MoneySet", "dd", playerid, 5);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "[Sweeper] You have collected $5 on your third checkpoint.");
SetPlayerCheckpoint(playerid, 2849.4407,-1675.0210,10.8750, 3.0);
}
else if(IsPlayerInRangeOfPoint(playerid, 3, 2849.4407,-1675.0210,10.8750))
{
CallRemoteFunction("MoneySet", "dd", playerid, 5);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "[Sweeper] You have collected $5 on your fourth checkpoint.");
SetPlayerCheckpoint(playerid, 2821.8525,-1868.4878,10.9426, 3.0);
}
else if(IsPlayerInRangeOfPoint(playerid, 3, 2821.8525,-1868.4878,10.9426))
{
CallRemoteFunction("MoneySet", "dd", playerid, 5);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "[Sweeper] You have collected $5 on your fifth checkpoint.");
SetPlayerCheckpoint(playerid, 2690.9890,-1878.5159,10.8828, 3.0);
}
else if(IsPlayerInRangeOfPoint(playerid, 3, 2690.9890,-1878.5159,10.8828))
{
CallRemoteFunction("MoneySet", "dd", playerid, 5);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "[Sweeper] You have collected $5 on your sixth checkpoint.");
SetPlayerCheckpoint(playerid, 2630.2695,-1730.7690,10.8746 , 3.0);
}
else if(IsPlayerInRangeOfPoint(playerid, 3, 2630.2695,-1730.7690,10.8746))
{
CallRemoteFunction("MoneySet", "dd", playerid, 5);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "[Sweeper] You have collected $5 on your seventh checkpoint.");
SetPlayerCheckpoint(playerid, 2427.2046,-1730.3483,13.5616 , 3.0);
}
else if(IsPlayerInRangeOfPoint(playerid, 3, 2427.2046,-1730.3483,13.5616))
{
CallRemoteFunction("MoneySet", "dd", playerid, 5);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "[Sweeper] You have collected $5 on your eight checkpoint.");
SetPlayerCheckpoint(playerid, 2433.2480,-1594.4696,25.3559, 3.0);
}
else if(IsPlayerInRangeOfPoint(playerid, 3, 2433.2480,-1594.4696,25.3559))
{
CallRemoteFunction("MoneySet", "dd", playerid, 5);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "[Sweeper] You have collected $5 on your ninth checkpoint.");
SetPlayerCheckpoint(playerid, 2453.1697,-1431.5006,23.8281, 3.0);
}
if(IsPlayerInRangeOfPoint(playerid, 3, 2453.1697,-1431.5006,23.8281))
{
CallRemoteFunction("MoneySet", "dd", playerid, 5);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "[Sweeper] You have collected $5 on your ten checkpoint.");
DisablePlayerCheckpoint(playerid);
}
return 1;
}