26.08.2014, 09:53
my friend. You cannot show 10 checkpoints once a time. if you want to HAVE 10 checkpoints ( i mean if the player go in the first checkpoint, the 2rd checkpoint shows upand so on up to the checkpoint 10 )
You need to do something like that
You need to do something like that
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(CPjob[playerid] == 1) // if player enter in the first checkpoint
{
GivePlayerMoney(playerid, 1000 + random(12000)); // give him some money
SendClientMessage(playerid, COL_JMEK, "You recive some money! Go to next checkpoint.");
SendClientMessage(playerid,COL_JMEK, "1 Respect Point Earned!");
SetPlayerCheckpoint(playerid, 736.1406,-1346.1637,13.5148, 4.0); // player recive another checkpoint, in your case, checkpoint nr.2
}
else if(CPjob[playerid] == 2)
{
GivePlayerMoney(playerid, 2000 + random(12000));
SendClientMessage(playerid, COL_JMEK, "You recive some money, again!Go to your last checkpoint.");
SendClientMessage(playerid,COL_JMEK, "1 Respect Point Earned!");
PlayerInfo[playerid][pRP] += 1;
SetPlayerCheckpoint(playerid, 594.4183,-1514.3046,15.1957, 4.0);
CPjob[playerid] = 3;
}
else if(CPjob[playerid] == 3)
{
GivePlayerMoney(playerid, 3000 + random(12000));
SendClientMessage(playerid, COL_JMEK, "Here is your last payment!");
SendClientMessage(playerid,COL_JMEK, "2 Respect Point Earned!");
PlayerInfo[playerid][pRP] += 2;
DisablePlayerCheckpoint(playerid);
CPjob[playerid] = 0;
}
return 1;
}

