13.03.2014, 16:45
Try
//forgot one.. or you can disable only once on start of this code
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
{
if(PizzaJob[playerid] == 1){
PizzaJob[playerid] = 2;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2012.4771,-1640.1229,13.1431,10);
SendClientMessage(playerid,COLOR_YELLOW,"* Please go to the next mark, and you'll be payed!");
return 1;
}
if(PizzaJob[playerid] == 2){
PizzaJob[playerid] = 3;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2387.0063,-1667.1498,13.1249,10);
return 1;
}
if(PizzaJob[playerid] == 3){
PizzaJob[playerid] = 4;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2414.9255,-1649.6678,13.1305,10);
return 1;
}
if(PizzaJob[playerid] == 4){
PizzaJob[playerid] = 5;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2517.6394,-1678.3141,13.9862,10);
return 1;
}
if(PizzaJob[playerid] == 5){
PizzaJob[playerid] = 6;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2441.1526,-2017.4093,13.1231,10);
return 1;
}
if(PizzaJob[playerid] == 6){
PizzaJob[playerid] = 7;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2486.2058,-2017.6384,13.1309,10);
return 1;
}
if(PizzaJob[playerid] == 7){
PizzaJob[playerid] = 8;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2520.9238,-2016.4714,13.1395,10);
return 1;
}
if(PizzaJob[playerid] == 8){
PizzaJob[playerid] = 9;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2464.7258,-2000.3944,13.1430,10);
return 1;
}
if(PizzaJob[playerid] == 9){
PizzaJob[playerid] = 10;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2240.8374,-1886.9504,13.1486,10);
return 1;
}
if(PizzaJob[playerid] == 10){
PizzaJob[playerid] = 11;
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2095.5488,-1815.7517,12.9792,10);
return 1;
}
if(PizzaJob[playerid] == 11){
PizzaJob[playerid] = 0;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_YELLOW,"* You have recieved $400 for delivering the pizzas.");
GivePlayerMoney(playerid,400);
}
}
return 1;
}