04.08.2011, 16:03
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(Player[playerid][CPSET] == 1)
{
SendClientMessage(playerid, WHITE, "You must deliver the products to the delivery point.");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, x, y, z, size);
Player[playerid][CPSET] = 2;
}
else if(Player[playerid][CPSET] == 2)
{
SendClientMessage(playerid, WHITE, "Well done, you have completed the trucking side-job.");
DisablePlayerCheckpoint(playerid);
Player[playerid][CPSET] = 0;
}
return 1;
}