if(strcmp(cmd, "/loadproducts", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsPlayerInRangeOfPoint(playerid, 7, -75.2536,-1598.1886,2.6172)) { if(IsPlayerInVehicle(playerid, 49 ![]() { if(truckjob[playerid] == 0) { SendClientMessage(playerid, COLOR_BLUE, "Deliver the Products to IdleWood Gas Station. (RED MARK)"); SetPlayerCheckpoint(playerid, 1925.0168,-1787.8075,13.3906, 10); truckjob[playerid] = 1; } else { SendClientMessage(playerid, COLOR_GRAD2, "You Are Not At The Delivery Place Or You Have Already Got Products To Deliver!"); } SendClientMessage(playerid, COLOR_GRAD2, "You Are Not In The Right Vehicle! Get in a Boxvill Van!"); } } return 1; } return 1; } |
if(GetVehicleModel(GetPlayerVehicleId(playerid)) == /*Boxville van model*/
if(strcmp(cmd, "/loadproducts", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 7, -75.2536,-1598.1886,2.6172))
{
if(IsPlayerInVehicle(playerid, 49)
{
if(truckjob[playerid] == 0)
{
SendClientMessage(playerid, COLOR_BLUE, "Deliver the Products to IdleWood Gas Station. (RED MARK)");
SetPlayerCheckpoint(playerid, 1925.0168,-1787.8075,13.3906, 10);
truckjob[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "You Are Not At The Delivery Place Or You Have Already Got Products To Deliver!");
}
SendClientMessage(playerid, COLOR_GRAD2, "You Are Not In The Right Vehicle! Get in a Boxvill Van!");
}
}
return 1;
}
if(strcmp(cmd, "/loadproducts", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsPlayerInRangeOfPoint(playerid, 7, -75.2536,-1598.1886,2.6172)) { if(IsPlayerInVehicle(playerid, 498)) { if(truckjob[playerid] == 0) { SendClientMessage(playerid, COLOR_BLUE, "Deliver the Products to IdleWood Gas Station. (RED MARK)"); SetPlayerCheckpoint(playerid, 1925.0168,-1787.8075,13.3906, 10); truckjob[playerid] = 1; } else { SendClientMessage(playerid, COLOR_GRAD2, "You Have Already Got Products to Deliver!"); } SendClientMessage(playerid, COLOR_GRAD2, "You Are Not In The Right Vehicle! Get in a Boxvill Van!"); } SendClientMessage(playerid, COLOR_GRAD2, "You are not at the delivery point!"); } } return 1; }
if(strcmp(cmd, "/loadproducts", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 7, -75.2536,-1598.1886,2.6172))
{
if(IsPlayerInVehicle(playerid, 498))
{
if(truckjob[playerid] == 0)
{
SendClientMessage(playerid, COLOR_BLUE, "Deliver the Products to IdleWood Gas Station. (RED MARK)");
SetPlayerCheckpoint(playerid, 1925.0168,-1787.8075,13.3906, 10);
truckjob[playerid] = 1;
}
else return SendClientMessage(playerid, COLOR_GRAD2, "You Have Already Got Products to Deliver!");
}
else return SendClientMessage(playerid, COLOR_GRAD2, "You Are Not In The Right Vehicle! Get in a Boxvill Van!");
}
else return SendClientMessage(playerid, COLOR_GRAD2, "You are not at the delivery point!");
}
return 1;
}
if(strcmp(cmd, "/loadproducts", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsPlayerInRangeOfPoint(playerid, 7, -75.2536,-1598.1886,2.6172)) { if(IsPlayerInVehicle(playerid, 609)) { if(truckjob[playerid] == 0) { SendClientMessage(playerid, COLOR_BLUE, "Deliver the Products to IdleWood Gas Station. (RED MARK)"); SetPlayerCheckpoint(playerid, 1925.0168,-1787.8075,13.3906, 10); truckjob[playerid] = 1; } else return SendClientMessage(playerid, COLOR_GRAD2, "You Have Already Got Products to Deliver!"); } else return SendClientMessage(playerid, COLOR_GRAD2, "You Are Not In The Right Vehicle! Get in a Boxvill Van!"); } else return SendClientMessage(playerid, COLOR_GRAD2, "You are not at the pickup point!"); } return 1; }
if(IsPlayerInVehicle(playerid, 609))
if(GetVehicleModel(GetPlayerVehicleID(playerid) == 609)
if(GetVehicleModel(GetPlayerVehicleID(playerid) == 609))
if(strcmp(cmd, "/loadproducts", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7, -75.2536,-1598.1886,2.6172))
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 609)
{
if(truckjob[playerid] == 0)
{
SendClientMessage(playerid, COLOR_BLUE, "Deliver the Products to IdleWood Gas Station. (RED MARK)");
SetPlayerCheckpoint(playerid, 1925.0168,-1787.8075,13.3906, 10);
truckjob[playerid] = 1;
}
else return SendClientMessage(playerid, COLOR_GRAD2, "You Have Already Got Products to Deliver!");
}
else return SendClientMessage(playerid, COLOR_GRAD2, "You Are Not In The Right Vehicle! Get in a Boxvill Van!");
}
else return SendClientMessage(playerid, COLOR_GRAD2, "You are not at the pickup point!");
return true;
}