pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(DVehicles[1] || DVehicles[2] || DVehicles[3] || DVehicles[4] == vehicleid)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "DELIVERY JOB:{FFFFFF} To start a Delivery Job use /deliverstock. (Rule: You may not use this vehicle for personal use)");
}
else
{
//something else here if you are having a lock system
}
if(PBVehicles[1] || PBVehicles[2] || PBVehicles[3] || PBVehicles[4] == vehicleid)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "PIZZA JOB:{FFFFFF} To start a Pizza Job use /deliverpizza. (Rule: You may not use this vehicle for personal use)");
}
else
{
//something else here if you are having a lock system
}
return 1;
}