12.02.2012, 02:51
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
{
if(PizzaJob[playerid] == 1){
PizzaJob[playerid] = 2;
SetPlayerCheckpoint(playerid,1200.7805,246.8164,19.5547,10);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
SendClientMessage(playerid,COLOR_YELLOW,"* Deliver a pizza to all the houses! Then you will be rewarded!");
return 1;
}
if(PizzaJob[playerid] == 2){
PizzaJob[playerid] = 3;
SetPlayerCheckpoint(playerid,807.4531,372.4268,19.3820,10);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
return 1;
}
if(PizzaJob[playerid] == 3){
PizzaJob[playerid] = 4;
SetPlayerCheckpoint(playerid,749.0499,258.3000,27.0859,10);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
return 1;
}
if(PizzaJob[playerid] == 4){
PizzaJob[playerid] = 5;
SetPlayerCheckpoint(playerid,248.2986,-31.9731,1.5781,10);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
return 1;
}
if(PizzaJob[playerid] == 5){
PizzaJob[playerid] = 6;
SetPlayerCheckpoint(playerid,251.4354,-287.8364,1.5836,10);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
return 1;
}
if(PizzaJob[playerid] == 6){
PizzaJob[playerid] = 7;
SetPlayerCheckpoint(playerid,745.2696,-554.4398,18.0129,10);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
return 1;
}
if(PizzaJob[playerid] == 7){
PizzaJob[playerid] = 8;
SetPlayerCheckpoint(playerid,794.0338,-507.9911,18.0129,10);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
return 1;
}
if(PizzaJob[playerid] == 8){
PizzaJob[playerid] = 9;
SetPlayerCheckpoint(playerid,1079.9202,-345.0044,73.9922,10);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
return 1;
}
if(PizzaJob[playerid] == 9){
PizzaJob[playerid] = 10;
SetPlayerCheckpoint(playerid,2236.6624,166.5144,28.1535,10);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
return 1;
}
if(PizzaJob[playerid] == 10){
PizzaJob[playerid] = 11;
SetPlayerCheckpoint(playerid,1361.2267,229.9569,19.5669,10);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
return 1;
}
if(PizzaJob[playerid] == 11){
PizzaJob[playerid] = 0;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_RED,"* Montgomery Pizza Co. has payed you $737 for delivering their pizzas.");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
GivePlayerMoney(playerid,737);
}
}
return 1;
}