08.02.2012, 11:34
Here you have an example, now, make your own.
By the way use the damn edit tool in forumns, instead of spamming with new posts.
pawn Код:
CMD:startdeliver(playerid, params[])
{
SetPlayerCheckpoint(playerid, 2204.1548,-1977.5861,13.5469, 5.0);
pCP[playerid] = 0;
}
pawn Код:
new Float:BCP[][3] =
{
{1005.3883,-936.3937,42.3281},
{1940.1459,-1772.6388,13.3906},
{-91.3580,-1168.5400,2.4355},
{655.7468,-565.1234,16.3359}
};
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(pCP[playerid] != -1)
{
GivePlayerMoneyEx(playerid, 50);
if(pCP[playerid] < sizeof(BCP))
{
pCP[playerid]++;
SetPlayerCheckpoint(playerid, BCP[pCP[playerid]][0], BCP[pCP[playerid]][1], BCP[pCP[playerid]][2], 5.0);
}
else
{
SendClientMessage(playerid, 0x999999AA, "Route finished");
DisablePlayerCheckpoint(playerid);
pCP[playerid] = -1;
}
}